Results 1 to 2 of 2
Thread: Problem with awk command
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
06-15-2010 #1
- Join Date
- Jun 2010
- Posts
- 1
Problem with awk command
I would like to cut a file composed of 999 columns which 1000 values in each column, and I've been thinking on using the command awk
When typing :
awk '{print $1}' latin_center_999_1000.txt > latin001
I copy easily the first row but I would like to code this process in order to stock a number of column in the next files.
For example, latin0015 will contain columns from 1 to 15
Which command should I use to realize that ?
I believe that something like
awk '{print $1something$15}' latin_center_999_1000.txt > latin001
does it, so does anyone have an idea ?
Regards
Michel
-
06-15-2010 #2
- Join Date
- Jan 2007
- Location
- cleveland
- Posts
- 480
welcome to the forum
> write selected columns to file
the utility "cut" is designed for this: v. man cutthe sun is new every day (heraclitus)