Search Results

Search: Posts Made By: bprabhukumar
1,551
Posted By bprabhukumar
create folders until conditions met
Hi,

I want to create 10 folders, starting from TEST001 till TEST010, after folder TEST010 is created the script should exit.

Thanks in advance
34,432
Posted By bprabhukumar
Thanks dr.house, it worked.
Thanks dr.house, it worked.
34,432
Posted By bprabhukumar
Hi Shazin, We need to grep for a pattern...
Hi Shazin,

We need to grep for a pattern from a given file, if the pattern is found we need to mail to an address. Else the script should quit.

if [ 'grep notice /export/home/test/test.log' ]...
34,432
Posted By bprabhukumar
If else then exit
Hi,

if [ 'grep notice $file' ]
then
mailx -s " MESSAGE " abc@xyz.com < $file
else
exit
fi

Could you let me know if the pattern is not found will the script exit.
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy