a script is to be written to list all d file names and tar the files with the filename bckup-<date>-<time>.tar.
given files can be anywhere in d directory path, the code should search for the files, display them n then tar with the given name convention.
i've done it partially, please help:o
Script should read the above given file, prepare the list of files mentioned in it using the directory paths, and create a tar containing all the given files. The tar filename should have the following naming convention: bkup-<date>-<time>.tar
i've tried it in this way..the input file is assign3.txt, my script file has the following-
the last directory names in the given paths are stored in $1 and $2..
i've to use those directory names to tar..
i'm storing them in variables a1 and b1 and using them in tar.. but its not helping..
How does you assign3.txt file look like ? What are the contents ? Can you put a sample file here ? Also $1 and $2 will be empty what are you passing to the script ?