Skip to content

Tag: linux

print specific field from specific line of csv file linux

I am trying to extract a specific field in a specific line of a CSV file. I’m able to do it according to the number row but sometimes the row number of the file will change so this is not that flexible. I wanted to try and do it to extract a specific name before the field I’m interested in.

Combine multiple files csv into one using awk

I want to combine two .csv files based on the unique id that exists in both files. First file consist of 17 columns and the second one in 2 columns where in both files the first column is the same unique id. In the to be created file 3 i would like 18 columns. I have been trying paste paste

Python: Run command for another software in terminal

I am using a software that my lab has developed, lets call it cool_software. When I type cool_software on terminal, basically I get a new prompt cool_software > and I can imput commands to this software from the terminal. Now I would like to automate this in Python, however I am not sure how to pass the co…