10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Entry level scripter. Any help appreciated.
for file in *; do rename '4321_' '' $file ; done
Doesn't work for files with spaces in between
4321_1004.dat is renamed to 1004.dat but
4321_1004 2008.dat stays the same (1 Reply)
Discussion started by: davnavin
2. Shell Programming and Scripting
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Discussion started by: chlade
3. UNIX for Dummies Questions & Answers
I have 1000 *.txt files in a folder and I would like to rename them data1.txt through data1000.txt. The order does not matter or the names of the initial input files. How would I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
4. UNIX for Dummies Questions & Answers
Hi, Hope someone can help... I'm pretty much new to unix and can only do basic commands.
I have an issue where by every day I need to schedule a job to look in a folder with a name format of .IP. will be different each day (when the day is over the folder extension changes), and rename any... (5 Replies)
Discussion started by: Harsharan
5. Shell Programming and Scripting
I want to rename more than 100 files. These files have "?" in there existing file name but I want to rename files to there first part before "?" token. I have tried using for loop but it isn't working so help following is the sample filename and for loop that am trying to use:
example of... (3 Replies)
Discussion started by: ls_lrta
6. UNIX for Dummies Questions & Answers
I am trying to change the XML filename in a folder to the rootelement in the XML file.
<?xml version="1.0" encoding="utf-8" ?>
Wanted to extract the... (8 Replies)
Discussion started by: sree_chari
7. Shell Programming and Scripting
I've got files with names like this :
Goffytofansub_Some name 483_HD.avi
And iam trying to rename it with a regular pattern. My gola is this :
I've tried using sed with... (8 Replies)
Discussion started by: VLaw
8. Shell Programming and Scripting
I splited a file into parts, then i wrote a script to convert the format of the file names to this: part1.dat part2.dat
but I wonder why part.dat is also created knowing that the k variable starts from 1
rm -f part*
$(split -b $1 file.1 part_)
set k = 1
for i in $(ls part_*)
mv -f... (1 Reply)
Discussion started by: saman_glorious
9. UNIX for Advanced & Expert Users
Guys, i need to replace a particular pattern in lots of files in a folder with another pattern . Is there any command line script I can use to do the functionality.
Eg: aalex > ls
Need to replace the 1234 in the file name with 9876... (4 Replies)
Discussion started by: appualex
10. Shell Programming and Scripting
I've got two folders, folder A contains some image files (say, 100 files) in .jpg format;
folder B contains all description files (say, 500 files) in .txt format.
All image files in folder A are able to find their corresponding description files in folder B.
That is to say,... (3 Replies)
Discussion started by: jiapei100