How to use CP command
Hello everybody,
I have a bunch of files named bkp1.arch to bkp99.arch. I want to copy just files numbered bkp11.arch to bkp92.arch. What is the exact CP command in this situation ? Thanks and Regards AJAZ |
What you could use is the "seq" command ("man seq" for information about it).
This could lead to: Code:
for number in $(seq 11 92); do cp bkp${number}.arch /target/path; done |
|
Hello Titopoquito,
You have really assisted me in solving the problem. The command worked perfectly and made my life much easier. Thanks a lot Thank you AJAZ |
hello,
Code:
cp bkp{11..92}.arch dir |
Loving ygloo's way - I had to try it out, seemed to beautiful to be true. Thanks.
|
Quote:
|
Have a look at man bash and search for brace expansion.
|
yap, it's all there in manual,
there are a lot of examples here: http://tldp.org/LDP/abs/html/index.html try this: echo {a..z} |
All times are GMT -5. The time now is 03:09 AM. |