Search Results

Search: Posts Made By: sheemam
1,520
Posted By sheemam
This one should work. awk 'BEGIN{h["...
This one should work.

awk 'BEGIN{h[" "]=0;max=0}{ind=-1;for(k in h)if(k==$1){ind=h[k];break}if(ind==-1){ind=++max;h[$1]=ind}print $1,ind,$2,$3}' infile
915
Posted By sheemam
ftp 192.168.1.101 << EOF cd /tmp get file.txt...
ftp 192.168.1.101 << EOF
cd /tmp
get file.txt
EOF
9,150
Posted By sheemam
this should fix ur prob: cat test.dat|awk...
this should fix ur prob:

cat test.dat|awk '$NF~/^20.0)/{print}'
9,150
Posted By sheemam
using awk: cat test.dat|awk '$NF~/20.0)/{print}'
using awk:
cat test.dat|awk '$NF~/20.0)/{print}'
Showing results 1 to 4 of 4

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