Need help on moving files and something else
I need some files to be copied to a different folder. But I have to setup a script which downloads a file called file.zip but the problem is that this file is extracted every time to a folder with different name. I think this file is updated weekly and and then folder in which files are extracted is for example
file01082006 then next time I download the file and extract it folder would be named file08082005.
Now is there a way for me to copy all files in that folder to another location. It contains like 50 txt files. Can I somehow use a wildcard like file* or something. Or can I specify names of text files to be copied and can they be found even if I don't specify exact folder name?
I need content of this folder, these text files moved to another location since I want to include them in a web page. So I don't need the folder iteslf copied.
Maybe if there is a way to copy all files from specified folder and subfolders to another folder. So I could extract this zip to for example /root/folder/file01082006/*.txt and if possible copy all files from "folder" to a different location.
And another thing I could use a help with is, is there some command or more of them I could use to insert two words at the very beginning and the end of those files. Like to insert "start" and "end" in each file.
Thank you in advance, I hope my question is understandable. I am a beginner and English is not my native language.
|