Search Results

Search: Posts Made By: Godie
6,328
Posted By Franklin52
How about: grep -c 'gold' file.txt
How about:
grep -c 'gold' file.txt
6,328
Posted By bartus11
awk '/gold/{i++}END{print i}' file.txt
awk '/gold/{i++}END{print i}' file.txt
4,101
Posted By vgersh99
depending on what you're after..... What are you...
depending on what you're after..... What are you after?

nawk '{system("cal");}' myFile
9,243
Posted By Perderabo
The -m for Monday option works with the GNU...
The -m for Monday option works with the GNU version of cal which is used standard on Linux. Issues like this are why you need to tell us precisely what OS you are using.

$ cal -m
May...
9,243
Posted By mayursingru
Hi, try this cal -m month year ...
Hi,
try this
cal -m month year
replace month and year appropriately.

Regards,
Mayur
3,131
Posted By Chirel
Hi, awk ' function multi(number) { ...
Hi,


awk '
function multi(number) {
return number * 3
}
BEGIN{print multi(4);}'
1,357
Posted By chihung
kumaran_5555 missed out the 2nd argument...
kumaran_5555 missed out the 2nd argument 'file1.txt'

awk 'FNR==NR{tarif[$1]=$2;next}{cust[$1] += ($2 * tarif[$3])} END{ for (i in cust) print i,cust[i]}' file2.txt file1.txt
666666661 53.98...
1,357
Posted By kumaran_5555
Here you go awk...
Here you go
awk 'FNR==NR{tarif[$1]=$2;next}{cust[$1] += ($2 * tarif[$3])} END{ for (i in cust) print i,cust[i]}' file2.txt
666666661 53.98
666666662 56.1
666666663 10.71
666666664 44.46...
Showing results 1 to 8 of 8

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