10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a directory which contains multiple files with .txt extension, i want to rename all these file to .bak extension using find command, this is what i've tried, please help me to correct this :
find /home/application/test -name '*.txt' -exec rename 's/txt/bak/' {} \;
seems to... (8 Replies)
Discussion started by: mukulverma2408
8 Replies
2. UNIX for Dummies Questions & Answers
Hello!
I know what i s recursion, but can't imagine what shoudl be "recursicve copying" of files?
Please, what should mean:
cp -r /home/hope/files/* /home/hope/backup
Can someone helpme with a simple example?
Many thanks!!! (6 Replies)
Discussion started by: pinklemon
6 Replies
3. Shell Programming and Scripting
I have this directory tree under /apps/myapp/data:
imageshack.us/photo/my-images/703/foldersc.png
How to recursively rename ONLY directories with 5 digits (00000, 00100, 00200,..., 00007, 00107,...)?
I want to add to their name two more zeros:
Before: 00107
After: 0000107
Thanks in... (2 Replies)
Discussion started by: Susan_45
2 Replies
4. Shell Programming and Scripting
I would like to transfer all files ending with .log from /tmp and to /tmp/archive (using find )
The directory structure looks like :-
/tmp
a.log
b.log
c.log
/abcd
d.log
e.log
When I tried the following command , it movies all the log files... (8 Replies)
Discussion started by: frintocf
8 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have d1,d2,d3 directories
/
/home/abc/d1
/home/abc/d2
/home/abc/d3
d1,d2 and d3 also have subdirctories.
d1-->d11-->d12
d2-->d22-->d23
d3-->d33-->d34
All these directories have files like date_filename.txt
so I want to find the files recusively for a particular date from... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies
6. Shell Programming and Scripting
hi
I have files named
123_234_aaa.jpg
234_231_345.jpg
and i wish to rename these files to
aaa.jpg and 345.jpg. i.e inital number,_,next number should be removed form the file name. Please let me know how can i do it. (2 Replies)
Discussion started by: vasuarjula
2 Replies
7. Shell Programming and Scripting
Hi,
find . | xargs -s 47518 can list all the files and directories recursively , is there any possibility to copy only files from directories and subdirectoreis once it is listed. Please help
Thans & Regards
Uma (3 Replies)
Discussion started by: umapearl
3 Replies
8. UNIX for Dummies Questions & Answers
I would like to replace multiple underscores with hyphens but I have 26,000 files to rename. They are all in one file structure and multiple sub-directories.
It would be much simpler if I had a script to do it. Here are some samples of the file names:
Example 1... (3 Replies)
Discussion started by: ..Chris..
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm new linux user.I need to recursively rename all files .I used this command "rename .MP3\;1 .MP3 *.MP3\;1" to rename files in one directory.But Inside this directory lots of sub directories there. Please help me out how to rename all files recursively?
Thanks
Govindan (2 Replies)
Discussion started by: catgovind
2 Replies
10. UNIX for Dummies Questions & Answers
Hi!
I'd like to list my files recursively BUT:
I want them in this format, so that I can use them as options for commands like ftp->put or del
./directory1/file1.tar
./directory1/file2.tar
./directory1/file3.tar
./directory2/file1.tar
./directory2/file2.tar
./directory2/file3.tar... (9 Replies)
Discussion started by: roberthawke
9 Replies