I'm sure I saw this as an example somewhere. Creating a new file that contains a file list & 1st line of current directory ie.:
File1.dat This is the first line of 1st file
File2.dat This is the first line of 2nd file
etc. for as many files as in the directory.
Anybody got a quickie?
I've got a file that I want to split out by value of field 1.
I'm trying to say "print the first line out to a new file called 'out1', go to the next line & compare the value of $1 with that of the previous line, if value is the same append this line to that file, if different create a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.