![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combining two/three line in to one | vakharia Mahesh | Red Hat | 0 | 04-17-2008 01:37 PM |
| help combining lines in awk | blueheed | Shell Programming and Scripting | 2 | 03-23-2006 06:26 PM |
| Combining Two Files | stevefox | Shell Programming and Scripting | 4 | 02-20-2006 05:09 AM |
| Combining Two Dirs | Phobos | UNIX for Dummies Questions & Answers | 2 | 01-26-2005 09:13 PM |
| combining files | apalex | UNIX for Dummies Questions & Answers | 3 | 06-19-2001 10:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Combining 2 scripts
Hello I am new to shell scripting. Below are 2 scripts which I need to combine in to single script.Can some experts guide me how to proceed?
#!/bin/bash grep "2443" /f/log/s/heduler.log | grep 2443> /tmp/memorydump exec 6<"/tmp/memorydump" read -u 6 data if [ -n "$data" ] then echo "IN THEN" < /tmp/memorydump fi rm -rf /tmp/memorydump And #!/bin/bash grep "Io exception: No route to host" /SSS/XX/XX/er.log | grep "Io exception: No route to host" > /tmp/memorydump exec 6<"/tmp/memorydump" read -u 6 data if [ -n "$data" ] then mail -s "PROD." xx@.com< /tmp/memorydump fi rm -rf /tmp/memorydump |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|