Search Results

Search: Posts Made By: ragu.selvaraj
1,723
Posted By anbu23
Add & at the end of your commands wc -l...
Add & at the end of your commands

wc -l file1.txt &
wc -l file2.txt &
wc -l file3.txt &
wc -l file4.txt &
1,222
Posted By balajesuri
What is your attempt to solve this?
What is your attempt to solve this?
678
Posted By Jotne
echo "5 52" | awk '{s=int($2/$1);r=$2-s*$1;for...
echo "5 52" | awk '{s=int($2/$1);r=$2-s*$1;for (i=0;i<$1;i++) {for (j=0;j<s;j++) printf "%s ",i*10+j;print ""};for (i=0;i<r;i++) printf "%s ",i+s*$1;print ""}'
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15...
1,062
Posted By Jotne
I guess this can be shorten to: awk...
I guess this can be shorten to:
awk 'NR==FNR{a[$1];next}!(FNR in a)' file2 file1
1,062
Posted By vidyadhar85
one more.. sed `printf "%sd;" $(cat...
one more..


sed `printf "%sd;" $(cat file2)` file1
1,062
Posted By Franklin52
Try this: awk 'NR==FNR{a[$1]=$1;next}!(FNR in...
Try this:
awk 'NR==FNR{a[$1]=$1;next}!(FNR in a)' file2 file1
955
Posted By pravin27
rec=ABC,1234,55.00 Colno=2 coldel=, ...
rec=ABC,1234,55.00
Colno=2
coldel=,

fd=$coldel
fprint=$(echo "'{print \$$Colno }'")

eval echo "echo $rec | awk -F\"$fd\" $fprint"
Showing results 1 to 7 of 7

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