Search Results

Search: Posts Made By: anshaa
1,808
Posted By Don Cragun
Again, your input data and the sorted input data...
Again, your input data and the sorted input data do not match. If you had sorted the input on the first four columns (assuming | is the field separator), SUB would follow MULT in your sorted when...
820
Posted By Scrutinizer
Try: sed 's/$/~/' infile
Try:
sed 's/$/~/' infile
2,173
Posted By elixir_sinari
nawk '{ for(i=3;i<=4;i++) ...
nawk '{
for(i=3;i<=4;i++)
if((n=split($i,a,"/"))==3)
$i=sprintf("%02d/%02d/%04d",a[1],a[2],a[3])
}1' FS=\| OFS=\| infile
1,747
Posted By pamu
try this.....
awk 'END{print RS} /^[0-9]/{if(NR>1)print RS}1' ORS=
Showing results 1 to 4 of 4

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