and file are the files under those subfolders. Where, subfolder are 2 folders inder Directory folder and path are 2 different path which will be shown in the attachments/attached files in the email. Subfolder1= /file1 /file2 /file3subfolder2= /file4 /file5 for (echo $comp and echo = and attaching it in the email. txt file of the echo statement (except for the first iteration) i.e. Instead of showing each component in the email body and attaching the files under each $comp (a subfolder), this command is making a. `for comp in $(ls -c Directory) do echo $comp echo = for file in $(find Directory/$comp -type f) do uuencode $file $file 2>/dev/null done done` calling uuencode withing a for loop inside another parent for loop, something strange is happening. Also, when I'm putting the below code (PSee inside `` backquotes) i.e.
0 Comments
Leave a Reply. |