bash script help
Code:
#!/bin/bash and if anyone knows a better way I can run the first 2 scripts as one, please let me know. |
Well, one thing I notice is the broken if there:
Code:
if [ "!$DATE" ]; then Code:
if [ ! "$DATE" ]; then |
narr that part was fine, i'll optimise that later. I really need to write an if statement that checks if $LOGFILE finishes with ".gz" and if so set $CMD2USE="/bin/zgrep" if not $CMD2USE="/bin/grep".
But before that I'm still stuck on the exit part. I need it to exit it's existing standza of code, but still continues on thx for the reply. |
All times are GMT -5. The time now is 05:42 PM. |