[Solved] Renumbering of a column and replace of lines in the file
[ad_1] Following script will change the third column of the input file into the number that you require and the output should be sorted for the third field. Script : torun.sh filename=”input.txt” cat input.txt | while read line do key=`echo $line | awk ‘{print $3}’` res=`echo $key % 4 | bc` newvalue=$key if [ $res … Read more