06-12-2012
Multiple file rename
hi im new to linux and was just wondering if some 1 could help me
i have folders with T.V. series in them and i would like to delete part of the filename
e.g.
(series name).s01e01.(episode name)
(series name).s01e02.(episode name)
(series name).s01e03.(episode name)
(series name).s01e04.(episode name)
(series name).s01e05.(episode name)
i would like them to be
s01e01.(episode name)
s01e02.(episode name)
s01e03.(episode name)
s01e04.(episode name)
s01e05.(episode name)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
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 :
prefix-date-key-suffix.jpg
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Discussion started by: steve7
7 Replies
2. Shell Programming and Scripting
Well the title is not too good, so I will explain.
I need to move (rename) files using a simple AIX script.
???file1.txt
???file2.txt
???file1a.txt
???file2a.txt
to be:
???renamedfile1'date'.txt
???renamedfile2'date'.txt
???renamedfile1a'date'.txt
???renamedfile2a'date'.txt
... (4 Replies)
Discussion started by: grimace15
4 Replies
3. Shell Programming and Scripting
I am new at Linux/UNIX programming. Here is my problem.
I had one big file which I split using the command
csplit -k -s -f april.split. april '/^ISA/' '{10000}'
So now I have multiple files with names
april.split.01
april.split.02
april.split.03
But I need the name of the file like... (5 Replies)
Discussion started by: yshahiac
5 Replies
4. 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
5. 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
6. Shell Programming and Scripting
I hope some one can help me
I have multiple files in a directory with out extension like as below mentioned. But i want to change all the file names along .DDMMYYYYHHMISS format. And all files should have same DDMMYYYYHHMISS.
Scenario:
direcory name = /vol/best/srcfiles
files in a... (4 Replies)
Discussion started by: hari001
4 Replies
7. Shell Programming and Scripting
I've been googling for days but can't find a solution to this problem.
I have a number of sets of files on a server
file02.dat
.
.
file12.dat
/.../fred(1 to n)/bill(1 to m)/tony/joe/
in any "fred" branch there will be one or more "bill"s
some joe/'s may not have a fileset and... (4 Replies)
Discussion started by: Sabreur
4 Replies
8. Shell Programming and Scripting
All,
I wanted to copy the files
From:
Daily_XYZ_TEST_1.csv
Daily_XYZ_TEST_2.csv
Daily_XYZ_TEST_3.csv
Daily_XYZ_TEST_4.csv
To:
Daily_ABC_TEST_1.csv
Daily_ABC_TEST_2.csv
Daily_ABC_TEST_3.csv
Daily_ABC_TEST_4.csv
I have tried the rename command but it is not working (5 Replies)
Discussion started by: alfredo123
5 Replies
9. UNIX for Dummies Questions & Answers
Hey guys, I am the definition of a newbie. I am in the process of trying to rip all my dvds onto a new HTPC I setup. While doing this, I am also trying to organize a bunch of other files I already have to proper naming conventions. So far I have just been naming each file separately (I am on a... (4 Replies)
Discussion started by: Ralze34
4 Replies
10. Shell Programming and Scripting
Hi all,
I need to rename more file name in one command or script.
The files have this structure:
XxY - filename.doc
where X and Y are numbers and the x is the letter itself.
I need to rename these files with this structure:
string.S0XEY.filename.doc
the string is a suffix that... (8 Replies)
Discussion started by: idro
8 Replies
LEARN ABOUT MOJAVE
git-quiltimport
GIT-QUILTIMPORT(1) Git Manual GIT-QUILTIMPORT(1)
NAME
git-quiltimport - Applies a quilt patchset onto the current branch
SYNOPSIS
git quiltimport [--dry-run | -n] [--author <author>] [--patches <dir>]
[--series <file>]
DESCRIPTION
Applies a quilt patchset onto the current Git branch, preserving the patch boundaries, patch order, and patch descriptions present in the
quilt patchset.
For each patch the code attempts to extract the author from the patch description. If that fails it falls back to the author specified with
--author. If the --author flag was not given the patch description is displayed and the user is asked to interactively enter the author of
the patch.
If a subject is not found in the patch description the patch name is preserved as the 1 line subject in the Git description.
OPTIONS
-n, --dry-run
Walk through the patches in the series and warn if we cannot find all of the necessary information to commit a patch. At the time of
this writing only missing author information is warned about.
--author Author Name <Author Email>
The author name and email address to use when no author information can be found in the patch description.
--patches <dir>
The directory to find the quilt patches.
The default for the patch directory is patches or the value of the $QUILT_PATCHES environment variable.
--series <file>
The quilt series file.
The default for the series file is <patches>/series or the value of the $QUILT_SERIES environment variable.
GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-QUILTIMPORT(1)