Skip to main content
9 events
when toggle format what by license comment
Nov 29, 2016 at 11:06 comment added Amit @ Sundeep - How to move the file (having multiple TCUST records) to some backup dir.. I am getting fatal division by 0 error
Nov 28, 2016 at 13:57 vote accept Amit
Nov 26, 2016 at 13:39 history edited Sundeep CC BY-SA 3.0
solution without ENDFILE
Nov 26, 2016 at 11:25 comment added Costas For non-GNU awk you should add FNR==1{if(m) print fname; m=0; fname=FILENAME} altogether with END{if(m) print fname}
Nov 25, 2016 at 15:06 comment added Sundeep @Costas, thanks for pointing out fallacy for multiple files.. I have changed to ENDFILE which is gawk specific though..
Nov 25, 2016 at 15:05 history edited Sundeep CC BY-SA 3.0
corrected for multiple file processing
Nov 25, 2016 at 14:51 comment added Costas Should add FNR==1{m=0} if several files
Nov 25, 2016 at 14:27 comment added Amit Hi Sundeep- Perfect.....works well !! Thanks for your help
Nov 25, 2016 at 13:20 history answered Sundeep CC BY-SA 3.0