10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
After reading the manual of the command rename I would like to apply it to a folder with a couple of files containing old style dots before the file-type, e.g. up.to.the.roof.avi. So I'd like to rename them without the dots in between. Therefore I tried it the following way
rename -f -n ... (4 Replies)
Discussion started by: 1in10
2. Shell Programming and Scripting
I have multiple files named rscclog_2013-03-25.txt;3 in a directory, where 2013-03-25 is the previous day's date and the number after extension .txt preceded by a ';' is any number which i do not know beforehand.
Now, i have to rename all such files as rscclog_2013-03-25.txt
thus,... (2 Replies)
Discussion started by: rahulkt1987
3. Shell Programming and Scripting
I have a list file that contains names of many files. I am reading one file name at a time using for loop
Then I like to create one more list file but with the file extension changed to "ctl".
Note: The file name can have any number of dots ".". But the extension after the last dot should be... (4 Replies)
Discussion started by: pinnacle
4. Shell Programming and Scripting
I have a directory that contains several files, out of which some files are have an extra extension for example
i want to write a shell script that rename all such file with only single extension like
file1.new... (7 Replies)
Discussion started by: mukulverma2408
5. Shell Programming and Scripting
I am trying to make all file in the directory uppercase but not their extension (ex: image.jpg becoming IMAGE.jpg)
here is code i am trying.
$ ls | while read file
newfilename=$(echo $name | tr 'a-z' 'A-Z')
mv $file $newfilename
any suggestions of... (4 Replies)
Discussion started by: johninweb
6. Shell Programming and Scripting
i had many files like filename.20110520_20110519_050030
i have to rename the file by removint the last numerics ..
i tried with cut command and removed the numerics but i'm not able to add .dat to the files.
is there any command insted of cut command to... (1 Reply)
Discussion started by: apple2685
7. Shell Programming and Scripting
Is there a command that can switch a character variable from UPPER case to lower case?
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
Thanks a lot! (3 Replies)
Discussion started by: rockytodd
8. Homework & Coursework Questions
Interpreter should be bash.
1. The problem statement, all variables and given/known data:
I need to make a file (myText.txt or song.mp3 or cloud.tar.gz or whatever) and then change the extension to (myText.TXT , song.MP3, cloud.TAR.GZ).
It would be good if I can add all information in... (4 Replies)
Discussion started by: Kdenmen
9. Shell Programming and Scripting
I am trying for loop to rename file extension from .txt to .html :
as below :
for i in *.txt; do mv "$i" `basename $i`.html; done
But this renames a file file1.txt as file1.txt.html
anyone know how get avoid .html added after .txt ?
it... (4 Replies)
Discussion started by: sriram003
10. UNIX for Dummies Questions & Answers
I hope someone can help me with this problem :
I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus :
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Discussion started by: steve7