Skip to content
Advertisement

Tag: text

In bash how to move row field to column in a text file

I have a .txt file with this record: I would like to convert them like that: I have tried something like: or like but i can’t get it to work I would like the values to be transposed and that each tuple of values associated with a specific field is aligned with the others Any suggestions? Thank you in advance

Group By and Sum from .txt file in Linux

Following a suggestion from @tripleee, I’m posting another question for a coding issue I’m having trying to be more specific with sources and expected results. My source .txt file is quite over populated with lines and using AWK, I: extract only rows identified by a specific code. parse the content of the line in order to get only certain values.

How to skip multiple directories when doing a find

I’ve written a find function that searches for a string in each file in a given path, while skipping a list of directory names that I don’t want searched. I’ve placed this script in my .bashrc file to be called like so: The find portion works great, and it colorizes the search text so that it visually stands out!, but

How to format 2nd and 3rd lines on the first line?

I am using VIM, and I want to format 2nd and 3rd lines. I can do it by :2,3left<number of spaces> How to do it easier to get something like this? Answer try this pres Esc+: then press v then press enter , select the second and third lines , press = https://www.cs.swarthmore.edu/help/vim/reformatting.html

How to edit 300 GB text file (genomics data)?

I have a 300 GB text file that contains genomics data with over 250k records. There are some records with bad data and our genomics program ‘Popoolution’ allows us to comment out the “bad” records with an asterisk. Our problem is that we cannot find a text editor that will load the data so that we can comment out the

Advertisement