The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: awk error
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-13-2008
jim mcnamara jim mcnamara is online now
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,484
There is a limit to command line size. gawk has nothing to do with it. Place your input filenames into a file our use ls directly:

Code:
local filelist=`ls fancy*.dat | awk '{
while (++i<=NF) {
split($i,x,"_");
y=(x[2]=="LANG")?4:3;
print x[y],y,$i}
}' | sort -t"-" +1 +2 | awk '{print $3}'`;
Reply With Quote