Need help in Shell scripting.

9 views
Skip to first unread message

Akav

unread,
Jan 4, 2019, 6:06:03 PM1/4/19
to support-arkit
Hi Arkit

Thanks a lot for sharing the videos, now I have started to develop interest on scripting. I need your help here.

Requirement : grep the data of a text.file, if the contents of the file is = 0 and the time stamp is current date send success msg to a log file. else if the value of the is >= 1 and the time stamp is current then send failure msg to the log. 


ankam...@gmail.com

unread,
Jan 5, 2019, 6:17:38 AM1/5/19
to support-arkit
Hi Akav,

Did not get your requirement, to validate file content you can use if option -z.

Please elaborate more.

Thanks,'
TechArkit
Reply all
Reply to author
Forward
0 new messages