10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have two folders. Folder A has 1000+ files with just images named like :
etc. Folder B has much more files, part of them with same name as png files folder others not. Instead of folder A wich are only images, these are audio wav files.
I need to... (11 Replies)
Discussion started by: Board27
2. UNIX for Dummies Questions & Answers
Linux RHEL 5.4
It is easy to create a tarball when you have files same extension
You want to tar all files with the extension .log . This is easy
tar -cvf diagnose.tar *.log
I have two files with different extensions .log and .sh :
I want to create a... (5 Replies)
Discussion started by: John K
3. Shell Programming and Scripting
Hi all, I am trying to make a for loop invoking files with different extensions (*.ugrd and *.vgrd) and I cant just make it work. Cant figure out how to load the files so as to use them in subsequent commands like the ones in this pseudo code. the files are arranged such that in one date for... (8 Replies)
Discussion started by: ida1215
4. Shell Programming and Scripting
Could someone give me a hand with a search for files with two possible extensions, please. The requirement is simple - I need to issue a single ls command searching for files with the suffix of, say, *.txt and *.log.
I've tried to use ls *.txt *.log which works if there are both... (4 Replies)
Discussion started by: neilmw
5. Shell Programming and Scripting
i have a few files like ...
and i would like to rename those files to ...
setup.r95 (7 Replies)
Discussion started by: Putazo
6. UNIX for Dummies Questions & Answers
I copied some files to another folder, and I want to change them from .doc extensions to .txt extensions. I tried using the cp and mv commands, but it didn't work. Is it possible to change file extensions with these commands, and if so how do I do it? I tried using the * wildcard (say cp *.doc... (1 Reply)
Discussion started by: Straitsfan
7. Shell Programming and Scripting
I am trying to write a Korne Shell Script wherein we have to sort
files according to their extensions(for eg. 1.sh, 5.sh, 9.sh together;
4.csh, 120.csh, 6.csh together and 7.ksh, 2.ksh, 59.ksh together) and
move them to their respective directories viz. sh, csh and ksh...
I think,... (1 Reply)
Discussion started by: marconi
8. Shell Programming and Scripting
From one directory I need to fetch only files of type *.xls,*.csv,*.txt. I tried the find . -name '*.txt,*.csv,*.xls' -print. But it throws me error. Please do help me on this.
Mahalakshmi.A (11 Replies)
Discussion started by: mahalakshmi
9. UNIX for Dummies Questions & Answers
I have a unix directory with 500 plus files . When I do a ls -lR I can see ALL the files here . How can I sort this by the files extensions ?
I can't enter ls -lR *.ext1 *.ext2 *.ext3 etc in case I miss out some files . (2 Replies)
Discussion started by: newbienix
10. UNIX for Dummies Questions & Answers
I want to select files which have different extensions such as .cpp, .cs, .h
I can select one of them as
find . -name "*.cpp"
but I want to select all of them in one command only. It should be pretty simple but I'm not able to get it. Any help with the command will be greatly appreciated. (1 Reply)
Discussion started by: MobileUser