Search Results

Search: Posts Made By: Jimmy_the_tulip
8,431
Posted By Don Cragun
I did! Did you look at the touch man page to...
I did!

Did you look at the touch man page to see how to create a file with a given timestamp? Did you look at the find man page to see how the -newer file primitive can be used to find files...
1,139
Posted By Akshay Hegde
Try : awk -F'[ ,]'...
Try :

awk -F'[ ,]' 'FNR==1{h=$0;next}{f=sprintf("%s.txt",$1); gsub(/\//,"_",f); if(f in F){ print >> f } else { print h RS $0 > f; F[f] } close(f) }' file

---------- Post updated at 09:09 PM...
1,139
Posted By RavinderSingh13
Hello, Could you please try following,...
Hello,

Could you please try following, following will help you to create files according to first column.


awk -F" |," 'BEGIN{i=1;}{if(A != $1){i++}} {print $0 >> i".txt";A=$1}' Input_file
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy