I used -T parameter to write the directory inside the file.
tar -czvf $LOCAL_FILE_SAVE -T $TXT_FILE
It's possible ignore the first lines on txt or use a special key to use like comment?
Example:
#comment (Ignore this line)
/home/user/stack
I used -T parameter to write the directory inside the file.
tar -czvf $LOCAL_FILE_SAVE -T $TXT_FILE
It's possible ignore the first lines on txt or use a special key to use like comment?
Example:
#comment (Ignore this line)
/home/user/stack
I suggest to use bash's Process Substitution with sed to remove first line:
tar -czvf "$LOCAL_FILE_SAVE" -T <(sed 1d "$TXT_FILE")