10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a quick reference question:
I have a very long, but fairly straigtforward script written in c-shell. I was wondering if it is possible to call this script from bash (for ex. having a function in bash script which calls the c-shell script when necessary), and if so, are there any... (1 Reply)
Discussion started by: lapiduslost
1 Replies
2. Shell Programming and Scripting
Need to subtract date stored in variable from the current date, answer should come in days..and months.
Suppose two variable having value like
A=”Wed Jan 15 08:59:08 GMT 2014”
B= `date` #Sun May 23 09:29:40 GMT 2010
SubtractAB= $A-$B #..?
AddAB=$A+$B #... ?
C=$B+9 # Sun May 23... (3 Replies)
Discussion started by: KuldeepSinghTCS
3 Replies
3. Shell Programming and Scripting
bash-2.05$ A=`cat /etc/group |awk -F':' '{if ($1$3$4 ==... (3 Replies)
Discussion started by: ak835
3 Replies
4. Shell Programming and Scripting
Hi there, i currently dont have access to my linux machine and need to get these script files sent to someone. Can someone please create .sh files for me with the code that i have displayed below. It would be very very helpfull.
There are 3 different scripts and it would be great if someone... (3 Replies)
Discussion started by: aLderzz
3 Replies
5. Shell Programming and Scripting
TAKE A LOOK AT THE ATTACHED PICTURE.
my goal is just to SELECT n DELETE Those lines :
Dialogue: Marked=0,0:02:39.49,0:02:40.49,Default,NTP,0000,00 00,0000,!Effect,
(without the text)
take a look at that picture... the marked line...
i just need ALL of these lines removed.. i managed... (3 Replies)
Discussion started by: mr_spidey
3 Replies
6. Shell Programming and Scripting
Hello,
I have the following line in one of my shell scripts. It works fine when the search string($SERACH_STR) exists in the logfile($ALERTLOG) but if the search string does not exist this line errors out at run time. Is there a way to make this line return 0 if it is not able to find the... (4 Replies)
Discussion started by: luft
4 Replies
7. UNIX for Advanced & Expert Users
Hi all,
I am trying to get the exception count daily from a log file which is more than 1 GB in size.
I am using loops which get the count of the exception and transaction. But i need to take this exception count for a time frame from 5.00 am to 5:00 pm.
I Think I can use to exact the... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies
8. Shell Programming and Scripting
Cool. I played with scripts at home over the weekend. Come to find out not working on other shells. I have linux/bash at home, but now I'm trying on Solaris csh.
How would I write the following script for Solaris C shell?
----------
#!/bin/bash
NBR=231
for ((i = 0; i < $NBR; i++ ))
do... (1 Reply)
Discussion started by: ajp7701
1 Replies
9. Shell Programming and Scripting
im trying to run the below if command
ifconfig -a |grep 10.100.120.21
gives me below output
inet addr:10.100.120.21 Bcast:10.100.120.255 Mask:255.255.255.0
i just want a basic shell which says if above exists then continue
how would i do this? (6 Replies)
Discussion started by: eb222
6 Replies
10. IP Networking
We are running Solaris 9 and I have changed the IP address, Subnet Mask & Broadcast Address using ifconfig and have also changed the default gateway.
How do I save these changes as I have bounced the box and it reverted back to the old IP Address settings.
I am really new to UNIX and we... (4 Replies)
Discussion started by: gingerd2003
4 Replies