i have a final question ...
i have a list of directories inside a string.
i want to tar these directories. i wrote this code;
for i in $directories
tar -cvzf "$destination$date-$i.tar" "$i"
what is wrong in the code ?
it gives me this result;
tar: /home/cumhur/Desktop/compressed-/home/cumhur/code/scripts.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Removing leading `/' from member names
edit: these directories exist.