Search Results

Search: Posts Made By: jim mcnamara
15,953
Posted By jim mcnamara
awk '{arr[FNR]=$0} END { if...
awk '{arr[FNR]=$0}
END { if (arr[4]=something) { arr[4]=somethingelse}
for (i=1;i<FNR; i++){print arr[i]}' infile > outfile

FNR is NR for a given file; NR totals all...
Showing results 1 to 1 of 1

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