Top "Cut" questions

A Unix shell command that breaks input into fields, which can be selected for output, based on a delimiter.

how to remove the first two columns in a file using shell (awk, sed, whatever)

I have a file with many lines in each line there are many columns(fields) separated by blank " " the numbers …

perl shell awk sed cut
Rearrange columns using cut

I am having a file in the following format Column1 Column2 str1 1 str2 2 str3 3 I want the columns to be …

shell csv cut
Using the grep and cut delimiter command (in bash shell scripting UNIX) - and kind of "reversing" it?

So I have a file with the text: puddle2_1557936:/home/rogers.williams/folderz/puddle2 I want to use the grep …

bash unix scripting grep cut
cat, grep and cut - translated to python

maybe there are enough questions and/or solutions for this, but I just can't help myself with this one question: …

python linux bash grep cut
How to get first n characters of each line in unix data file

I am trying to get the first 22 characters from a unix data file.Here is my data looks as below. …

linux unix awk cut
How to cut part of a string in c?

I'm trying to figure out how to cut part of a string in C. For example you have this character …

c string cut
Printing only the first field in a string

I have a date as 12/12/2013 14:32 I want to convert it into only 12/12/2013. The string can be 1/1/2013 12:32 or 1/10/2013 23:41 I need only …

unix sed awk field cut
Cut command to specify the tab as the delimiter

There is a file which the delimiter is tab ,when i use the command cut -d \t file.txt #or "\…

shell cut
cut command newline

I have a file like this: one two three four I would like use a for loop in a bash …

bash cut
How to get second last field from a cut command

I have a set of data as input and need the second last field based on deleimiter. The lines may …

unix awk cut