Search Results

Search: Posts Made By: etldev
8,278
Posted By Don Cragun
I apologize; I must have been asleep when I...
I apologize; I must have been asleep when I looked at your code yesterday. Change:
awk '!/^$/{ a=substr($0,1,4) print $0 > "SBSCR." a ".txt"}' harsha1.txtto:
awk '!/^$/{ a=substr($0,1,4); print $0...
10,343
Posted By Corona688
print $0 > "PREFIX." a...
print $0 > "PREFIX." a ".txt"
10,343
Posted By RudiC
As we are talking 17 files only, the close...
As we are talking 17 files only, the close although correct could be ommitted: $ awk '{print > substr ($0,1,4)}' file
10,343
Posted By Yoda
awk '{F=substr($0,1,4)".txt";print >>...
awk '{F=substr($0,1,4)".txt";print >> F;close(F)}' input_file
Showing results 1 to 4 of 4

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