10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
data.now:
blah1,dah,blaha,sweet,games.log,5297484456,nagios-toin,529748456,on__host=93 SERVICE__ALERT_=51 Warning___The__results__of__service=16 Warning___on__host=92 Auto_save__of__retention__data__completed=1 Warning___Return=68 PASSIVE__SERVICE__CHECK_=53 ,1026--1313,1... (12 Replies)
Discussion started by: SkySmart
12 Replies
2. UNIX for Dummies Questions & Answers
Hi experts, I've been struggling to format a large genetic dataset. It's complicated to explain so I'll simply post example input/output
$cat input.txt
ID GENE pos start end
blah1 coolgene 1 3 5
blah2 coolgene 1 4 6
blah3 coolgene 1 4 ... (4 Replies)
Discussion started by: torchij
4 Replies
3. Shell Programming and Scripting
Hello,
How to add numbers that are read from a file /tmp/test
The content of the file look like
1234
234
432
1235
123
I read the file content in a for loop
f=/tmp/test
for i in `cat $f`
do
.
.
done
Santhosh (11 Replies)
Discussion started by: mvsanthosh
11 Replies
4. Shell Programming and Scripting
Hi All,
I have written the below to add the numbers in a column. Postive numbers are unsigned and negative numbers are signed in the file. After the below cmd I am getting -0.00 , instead of 0.00. Can someone guide me on what I am missing in the cmd.
grep '^L' $FileName| awk -F"|" ' {... (7 Replies)
Discussion started by: gsjdrr
7 Replies
5. UNIX for Dummies Questions & Answers
hi,
i am having one file which looks like the one below:
ABC1
***
1
4
ABC2
***
7
12
ABC3
***
0
34
... (4 Replies)
Discussion started by: kripssmart
4 Replies
6. Shell Programming and Scripting
Hello.
I new to Shell Scripting.
I have a file and here is the output of the file.
1.1M
1.1M
3.3M
149K
61K
75K
144K
135K
82K
170K
327K
2.0M
219K
165K (8 Replies)
Discussion started by: email-lalit
8 Replies
7. Shell Programming and Scripting
I need to add a list of numbers contained in a file. For example, the file would look like this:
10
290
342
5409
I need to get a total sum of all the numbers in the list. Any ideas?
Thanks! (2 Replies)
Discussion started by: TheCrunge
2 Replies
8. Shell Programming and Scripting
I've refined the filesystem size using awk and directed to a file name.
eg, here's the content in a file called "numbers"
$cat numbers
345
543
23423456
44435
546
.
.
how do you write a script to all these numbers to get the total?
thanks a lot. (9 Replies)
Discussion started by: kiem
9 Replies
9. Shell Programming and Scripting
:confused:
I have plain text file "tmp" which include a range of numbers(bytes), say like:
123
234
567
2434
2323
213123
How can I add them and display out.
should I use AWK, then how?
I am a newer in Bourne shell, please give me a hand, thanks a lot (7 Replies)
Discussion started by: pnxi
7 Replies
10. Shell Programming and Scripting
im using this command to return the number of links in my directory,
grep -c -i -h "href" *html */*html *htm *shtml
is there a way of adding these to get the total?
Cheers (3 Replies)
Discussion started by: TalkShowHost
3 Replies