<div dir="ltr">Hi <div><br></div><div>I have a situation where I have several files, say file1.txt, file2.txt, file3.txt and file4.txt (but the number of files can change!) that I want to move from the source folder to a target folder. The only difference is that I want the files in the target folder to have todays' date appended to it, so would be file1_20131121.txt, file2_20131121.txt.., file4_20131121.txt</div>
<div><br></div><div>I thought </div><div>cp /home/user/Documents/source/file* /home/user/Documents/target/file*_$(date +%Y%m%d).txt would work but no.. it says directory does not exist..</div><div><br></div><div>but </div>
<div>mv /home/user/Documents/source/file1.txt /home/user/Documents/target/file1_$(date +%Y%m%d).txt works<br></div><div><br></div><div>The challenge is to get all the files from source to have the timestamp when copied over into target.</div>
<div><br></div><div>Any advice will be highly appreciated.</div><div><br></div><div>Thanks</div><div><br></div><div>Suntish</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>