10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to write a bash script that when i enter two ip address, it will calculate summerize address for them.
Examlpe:
192.168.1.27/25
192.168.1.129/25
Result will be:
192.168.1.0/24
can you help me with this script?
I even dont know how to start with it (3 Replies)
Discussion started by: Miron
3 Replies
2. UNIX for Dummies Questions & Answers
hello,
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
1 Replies
3. Shell Programming and Scripting
Hi All,
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
1 Replies
4. Shell Programming and Scripting
shell script to calculate difference between 2 dates (3 Replies)
Discussion started by: gredpurushottam
3 Replies
5. Shell Programming and Scripting
hello,
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
3 Replies
6. Shell Programming and Scripting
Dear all,
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
4 Replies
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
processing 585
Sat Mar 6 17:00:01
Sat Mar 6 17:00:58
processing 109
Sun Mar 7 04:00:01
Sun Mar 7 04:00:51
processing 309
Sun Mar 7 17:00:01
Sun Mar 7 17:00:41
processing 48
I want output as... (1 Reply)
Discussion started by: gubbu
1 Replies
8. Solaris
hi,
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.
before reboot:
eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies
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.
Line example
1197979501.787 1 10.1.14.62 TCP_NEGATIVE_HIT/404 1463 GET http://url
The... (0 Replies)
Discussion started by: anything
0 Replies
10. Shell Programming and Scripting
I want develop a script which should also check validity of netmask.
e.g.
/etc/netmasks
10.15.20.30 255.255.255.224
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
2 Replies