Click to See Complete Forum and Search --> : creating something simular to a dos batch file?


JesterDev
12-04-2003, 09:58 PM
How would I go about writing a batch file under linux? Just as an example, say I wanted to copy all the files in a dir to another dir. In dos I would use:

copy *.* c:\somedir

And call it something like copy.bat

I'm looking to create something a bit more complicated, but I'm not sure how to go about this.

dboyer
12-04-2003, 10:03 PM
"bash scripting"

or something similiar...

http://www.tldp.org/LDP/abs/html/

cp /usr/dir1/* /usr/dir2/

JesterDev
12-06-2003, 04:26 PM
Thank you. That's exactly what I was looking for. :)