|
|
|
|
UGU: Unix Guru Universe - Unix Tip #4182- July 24, 2012
- Home : Help
: Today's Tip
Unix Tip #4182- July 24, 2012
MANIPULATE MULTIPLE FILES
If you have a directory with
large number of files and you
want to rename or copy or
process it, here is a simple
way to do it;
# for temp in *
> do
> echo cp $temp $temp.org >> t.txt
> done
You can change the copy command
to what ever that you need to
do. This will create a file
tmp.txt with all the files
listed in the current working
directory and insert a line
into the file tmp.txt as;
cp filename filename.org
This tip generously supported by: tyl@computer.org
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
LAST 5 TIPS
4181
- UNDO HP SECURE PASSWORD FACILITY
4180
- COMMENT OUT MULTIPLE LINES
4179
- HOW MUCH SOLARIS MEMORY?
4178
- EDITING OF LARGE FILES
4177
- LEAKING MEMORY?
I want to
SUBSCRIBE
and get a UGU Tip everyday.
I want to
UNSUBSCRIBE
and NOT get a UGU Tip everyday.
If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
|
|
|
Copyright 1994-2024 Unix Guru Universe |
|
|
|
|