Search Results

Search: Posts Made By: anshaa
1,678
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...
2,049
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,654
Posted By pamu
try this.....
awk 'END{print RS} /^[0-9]/{if(NR>1)print RS}1' ORS=
783
Posted By Scrutinizer
Try: sed 's/$/~/' infile
Try:
sed 's/$/~/' infile
Showing results 1 to 4 of 4

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