10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to write a bash script that when i enter two ip address, it will calculate summerize address for them.
Result will be:
can you help me with this script?
I even dont know how to start with it (3 Replies)
Discussion started by: Miron
2. UNIX for Dummies Questions & Answers
I have implemented this command :
tshark -eth0 -T fiels -e frame.time et sip.Request-Line -z sip,stat > test2.txt
the result of this command : test.txt:
Aug 27, 2013 23:06:47.334270000 INVITE
Aug 27, 2013 23:06:47.335045000 SIP/2.0 401 Unauthorized
Aug 27, 2013... (1 Reply)
Discussion started by: Amouna
3. Shell Programming and Scripting
I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide
which cpu number (column 2) has maximum value (column 6).
Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
4. Shell Programming and Scripting
shell script to calculate difference between 2 dates (3 Replies)
Discussion started by: gredpurushottam
5. Shell Programming and Scripting
please can you help me.
jj and kk are two numbers which are the result of an sql program.
I would like to calculate the ratio jj/kk*100.
I have done this:
ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0
What can i do?
Thanks for help. (3 Replies)
Discussion started by: likeaix
6. Shell Programming and Scripting
Please help me to write a script that can calculate the size of files.
For example: I have a directory which contain thousands of files. I need to know the size of files that their name begin with abc_123
Thank all!! (4 Replies)
Discussion started by: hainguyen1402
7. Shell Programming and Scripting
I have a txt file which now has the following output
Sat Mar 6 04:00:01
Sat Mar 6 04:02:09
Sat Mar 6 17:00:01
Sat Mar 6 17:00:58
Sun Mar 7 04:00:01
Sun Mar 7 04:00:51
Sun Mar 7 17:00:01
Sun Mar 7 17:00:41
I want output as... (1 Reply)
Discussion started by: gubbu
I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address.
I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated.
eri0:... (3 Replies)
Discussion started by: badoshi
9. Shell Programming and Scripting
could you please find a solution for this
a complex command using pipes to Calculate the number of hits per client in Squid log file (access.log), the command should display most active hosts first.
1197979501.787 1 10.1.14.62 TCP_NEGATIVE_HIT/404 1463 GET http://url
The... (0 Replies)
Discussion started by: anything
10. Shell Programming and Scripting
I want develop a script which should also check validity of netmask.
How can I check which IP adresses are valid for this netmask?
I think the best is use logical operations.
224 is 1 1 1 0 0 0 0 0
so is valid from 10.15.20.31... (2 Replies)
Discussion started by: rhacodactylus