10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the portion of bash below I am using rename to match the $id variable to $file and when a match (there will alwsys be one) is found then the $id is removed from each bam and bam.bai in $file and _test is added to thee file name before the extension. Each of the variables is set correctly but... (3 Replies)
Discussion started by: cmccabe
3 Replies
2. Shell Programming and Scripting
Hi,
I have some files as below.
Temp6001_5025.cpp
Temp6002_5025.cpp
Temp6003_5025.cpp
Temp6004_5025.cpp
Temp6005_5025.cpp
Temp6006_5025.cpp
Temp6007_5025.cpp
.
.
Temp6100_5025.cpp
i want to replace 5025 to 5026 in all files and the result should be
Temp6001_5026.cpp
.
.... (3 Replies)
Discussion started by: lathigara
3 Replies
3. Shell Programming and Scripting
I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide command for this?
Thanks in advance. (2 Replies)
Discussion started by: venkatababu
2 Replies
4. Shell Programming and Scripting
I have a file with very specific column spacing formatting,
I wish to do the following:
awk '{print $1, $2, $3, $4, $5, $6, $19-$7, $20-$8, $21-$9, $10, $11, $12}' merge.pdb > vector.pdb
but the format gets ruined.
I have tried with print -f but to no avail.... (7 Replies)
Discussion started by: chrisjorg
7 Replies
5. Shell Programming and Scripting
Hello,
I've been searching and reading, but I can't figure out how to solve this problem with my newbie skills.
In my directory, I have a list of files (see dirlist.txt attachment) that I need to merge and rename. I have part of the code of the code figured out (see below). However, I... (3 Replies)
Discussion started by: anjulka
3 Replies
6. UNIX for Dummies Questions & Answers
Okay so here's something that's confusing me: I have a script that's designed to remove the words "new_" from the front of any file except two exceptions and it looks something like this...
for i in new_*
do
if ] && ]; then
j=`echo "$i"|cut -c5-`
mv $i $j
fi
done
... (5 Replies)
Discussion started by: Korn0474
5 Replies
7. Shell Programming and Scripting
Dear All,
Please help !
i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name ..
pls help.. (6 Replies)
Discussion started by: moon_22
6 Replies
8. Shell Programming and Scripting
Hi
I have following list of files at a path:
01.AR.asset
01.AR.index
01.AR.asset.vf
01.AR.asset.xv
I want to rename all these files as follows:
73.AR.asset.Z
73.AR.index.Z
73.AR.asset.vf.Z
73.AR.asset.xv.Z
Can any body give me a single command to acheive the above results.
... (5 Replies)
Discussion started by: tayyabq8
5 Replies
9. UNIX for Advanced & Expert Users
Hi,
I need a command that to copy files from others and to keep files' ownership.
Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local.
Thanks in advance! (3 Replies)
Discussion started by: need_help
3 Replies
10. Shell Programming and Scripting
Hi everyone,
I will be downloading a file every day with the name in this format
SCA20060303_17514_IN.TXT
And I need to rename it to
SCA20060303_IN.TXT
Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I... (9 Replies)
Discussion started by: propel
9 Replies