10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have 100 folders with the first delimiter has a unique name i.e (123_hello and 575_hello) and each folder have atlist 1000 plus files with naming convention i.e (575_hello_1.iso ... 575_hello_1000.iso).
575_hello/575_hello_1.iso
575_hello/575_hello_2.iso
575_hello/575_hello_3.iso... (8 Replies)
Discussion started by: lxdorney
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I want perl script for the below requirement.
We have lot of files like below name in the directory
750464921-RE-file2.csv
750452173-RE-file1.csv
750385426-RE-file3.csv
750373470-RE-file4.csv
And also we have another file as "Group.csv" in the same directory as per the below format... (9 Replies)
Discussion started by: armsaran
9 Replies
3. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
4. Shell Programming and Scripting
Hi all,
I do not have programming experience and mostly use one-liner or sometimes more to get the job done. I am having problem to batch rename the files that do not match a particular pattern.
Sample file-names from directory:
Meeting_Packages.pdf 13_textfile0 19_textfile0 ... (3 Replies)
Discussion started by: atulkakrana
3 Replies
5. Shell Programming and Scripting
hi gooday
I need some help with a rename I am attempting.
I'd like to rename a bunch of files in a folder
example
list.dat.old to list_N.dat
query.dat.old to query_N.dat
note the two periods in (.dat.old) to become _N.dat
I tried using sed like this
ls *.dat.old | sed... (3 Replies)
Discussion started by: johnstrong
3 Replies
6. Shell Programming and Scripting
I need to remove all lines which does not match the pattern from a text file (batch of text files). I also need to keep the header line which is the first line of the file. Please can you provide an example for that.
I used this to solve half of my work. I was unable to keep the first line of... (3 Replies)
Discussion started by: talktobog
3 Replies
7. UNIX for Dummies Questions & Answers
Variations of multiple renames seems to come up a lot but i can't find the answer to this situation.
Tidying up a directory where people rename files to .working, .bob, .attempt1 & so on.
what i am trying to do is: list the file type, & rename from ".whatever" to .fixed.
As the ".whatever" is... (5 Replies)
Discussion started by: woodstock
5 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have a string assigned to a variable. the string will be a filename. Something like below:
file=testfile.dat.20009080_{arc}_2004809090
I need to check if the filename has a pattern like "_{arc}_" and if so I have to rename the file like below
mv... (6 Replies)
Discussion started by: deepakgang
6 Replies
9. UNIX for Advanced & Expert Users
In my dir there are files like
a.xml
b.xml
abnc.xml
12.abc.xml
12.anc.sfoioi.xml
I need to remove .xml from all the files
Is there any direct way without using any for/do loop
Right now i am using
for file in *
do
... (7 Replies)
Discussion started by: reldb
7 Replies
10. Shell Programming and Scripting
example test1 will have m1234567.12a
I would like to rename in batch but I don't Please help me on this.
cd /a1/a2/a3
test1=$(basename /a1/a2/a3/*.*) >> /tmp/t
echo $test1
echo "Extracting 8 th position" >> /tmp/t2
awk '{print substr($1,8,1); }' $test1 >> /tmp/t3
echo "extraction ... (3 Replies)
Discussion started by: kathy18
3 Replies