![]() |
|
|
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 lines in Linux script | yshahiac | Linux | 4 | 08-24-2008 12:59 AM |
| Script works on Solaris, not on Linux | Silverhood | Shell Programming and Scripting | 0 | 10-05-2007 10:27 AM |
| Linux Server Monitoring Script !!! | csaha | Shell Programming and Scripting | 4 | 12-23-2005 12:48 AM |
| Script Migration From HP to Linux (KSH) | Omkumar | Shell Programming and Scripting | 1 | 09-02-2005 10:44 AM |
| Linux Os Crash Script | cstovall | Shell Programming and Scripting | 1 | 07-09-2004 03:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Everyone , have a nice day
given below is a simple linux script but its first part is not working ( variable k assignment ) , while second loop is working fine can anyone help me out with this HTML Code:
#!/bin/sh echo "Enter Date" read date1 for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 do k = `grep -i success /var/seamless/spool/tdr/ERS_200804$date1$i* | wc -l` echo $k done echo " " for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 do grep -i fail /var/seamless/spool/tdr/ERS_200804$date1$i* | wc -l done |
|
||||
|
Quote:
Remove the spaces surrounding the = when you assign the variable k. It should read k=`grep -i....` Remember you can put a "-x" at the end of your #!/bin/sh statement and it will run the script in debug |
|
||||
|
cp file1 file2 script help, immediate help needed......
Do you know how to make up the script "cp file1 file2"? If you don't know, do you know of anyone else that could help me? I need a response as soon as possible, I greatly appreciate any help you can give me.
|
|
|||||
|
Quote:
Read the Rules of these forums FIRST. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|