Search Results

Search: Posts Made By: GeodusT
2,679
Posted By radoulov
perl -F'\s*=\s*' -lane' push @f, $F[0]; ...
perl -F'\s*=\s*' -lane'
push @f, $F[0];
push @s, $F[1];
END {
@ss = sort { $a <=> $b } @s;
for (sort { $a <=> $b } @f) {
printf "%s = %s\n", $_, shift @ss
}
...
2,679
Posted By jim mcnamara
Try: awk '{print $2, $3}' inputfile | sort | nl...
Try:
awk '{print $2, $3}' inputfile | sort | nl > newfile

Edit: forgot field 3
1,193
Posted By yazu
(echo aaa.txt grep xxx aaa.txt | awk '{print $4...
(echo aaa.txt
grep xxx aaa.txt | awk '{print $4 }' |
while read n; do #
[ "$n" -ne $((prev+1)) ] && echo #
printf "$n," ...
1,193
Posted By yazu
I like pipes (and cats I like too :) ): cat...
I like pipes (and cats I like too :) ):
cat INPUTFILE |
while read n; do #
[ "$n" -ne $((prev+1)) ] && echo ...
1,193
Posted By agama
Using awk, this is one way: awk ' ...
Using awk, this is one way:


awk '
function showit()
{
if( first++ )
printf( ", " );
if( last != start )
printf( "%d - %d",...
Showing results 1 to 5 of 5

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