Search Results

Search: Posts Made By: chumsky
9,237
Posted By jayan_jay
$ nawk '{gsub(/:/," ")};1' infile
$ nawk '{gsub(/:/," ")};1' infile
8,369
Posted By bartus11
Try: awk -F"~" -vOFS="~" '{$6=sprintf...
Try: awk -F"~" -vOFS="~" '{$6=sprintf ("%08.2f",$6);$7=$7" ";$8=$8" "}1' file
2,374
Posted By Ygor
Try...awk...
Try...awk 'BEGIN{FS=OFS="~"}$2=="US60"&&$4=="008"{print "A",$3,"SLP",$10,$9,$8,$7,$6,$5,""}' file1 > file2
6,768
Posted By itkamaraj
Try to understand the code and starts to learn...
Try to understand the code and starts to learn from basics.

So, that you can write the command by yourself.


$ nawk -F"\#" '{ if(NR>1) {for(i=1;i<=NF;i++){printf("%s\t\t",$i);...
6,155
Posted By itkamaraj
today=`date +%Y%m%d`;nawk -F"\~" -v date=$today...
today=`date +%Y%m%d`;nawk -F"\~" -v date=$today '{ if(NR >3) { if( $13 < date) {print $0}}}' filename
Showing results 1 to 5 of 5

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