New to unix and learning the talk and walk of it.
I am writing a script in .ksh and have a requirement of sending a mail with a message.
Currently using this command in my script:
mailx -s"File not …
When I do unzip -l zipfilename, I see
1295627 08-22-11 07:10 A.pdf
473980 08-22-11 07:10 B.pdf
...
I only want to see the filenames. I try this
unzip -l zipFilename | cut -f4 -d" "
but I don't think the delimiter is just " ".
I have a following piece of code that says if everything is executed mail a person if it fails mail the person with a error message.
if [[ $? -ne 0 ]]; then
mailx -s" could not PreProcess files" [email protected]
else
mailx …