03-24-2007
Copying files from multiple directories
If you are interested, this is a solution that I used to copy *.m4a files from multiple directories into a new directory:
find . -name "*.m4a" -exec cp "{}" /<dir> \;
This will search for any occurrance of *.m4a in the current directory and any subdirectory and move them to the specified directory.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Please help - I need to copy a single file to multiple directories.
Dir structure:
Parent_Directoy
Filename1
Child_Directory1
Child_Directory2
Child_Directory3
Child_Directory4
....
So I need to copy Filename1 to all of the... (2 Replies)
Discussion started by: kthatch
2 Replies
2. UNIX for Dummies Questions & Answers
Hi guys,
I want to copy folder and sub folders only. I don't want the files. If i use cp -r command it will copy entirely with files.
Could any one suggest me.
Thanks in advance (1 Reply)
Discussion started by: karthik82
1 Replies
3. UNIX for Dummies Questions & Answers
how can i copy those files into other directories have the same name but different in the end
i have files in directory called test:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt
10_10_11_12_asdafjjhoqwd.txt
i want to put them in exist directory thart i have on my system
i have... (1 Reply)
Discussion started by: t17
1 Replies
4. Shell Programming and Scripting
Hello,
I have a small question and i hope someone can help me, if i have 200 domains directories in my server under this directory
something like
now how i can copy one folder i have to this directories?
Thank You (5 Replies)
Discussion started by: GamGom
5 Replies
5. Shell Programming and Scripting
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
6. Shell Programming and Scripting
Hi,
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Discussion started by: amarn
20 Replies
7. Shell Programming and Scripting
my directory structure is like below:
basedir\
p.txt
q.htm
r.java
b\
abc.htm
xyz.java
c\
p.htm
q.java
rst.txt
my requirement is i want to copy all the files and directories... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies
8. UNIX for Dummies Questions & Answers
Hi All Genious,
I want to copy a file name XYZ .In a directory /HOME/dir/IXOS1/dir1
which contain multiple directories named not in pattern want to copy the XYZ in all of the directories available on path /HOME/dir/IXOS1/dir1 .
Thanks in advance . (2 Replies)
Discussion started by: mumakhij
2 Replies
9. Shell Programming and Scripting
Hi Guys,
I need to copy the files to respective directories based on name of the file. My script is something like below
con=$1
for file in `cat $con`
do
file_tmp=$(ls -t1 $path| grep -i $file | head -n 1)
echo $file_tmp
if
then
cp $path$file_tmp $DIR/ap
if
then... (16 Replies)
Discussion started by: Master_Mind
16 Replies
10. UNIX for Beginners Questions & Answers
Dear all
I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies
LEARN ABOUT DEBIAN
puddletag
PUDDLETAG(1) User Commands PUDDLETAG(1)
NAME
puddletag - puddletag
SYNOPSIS
puddletag [options] [directory path]
DESCRIPTION
puddletag is an audio tag editor (primarily created) for GNU/Linux similar to the Windows program, Mp3tag. Unlike most taggers for
GNU/Linux, it uses a spreadsheet-like layout so that all the tags you want to edit by hand are visible and easily editable.
The usual tag editor features are supported like extracting tag information from filenames, renaming files based on their tags by using
patterns and basic tag editing.
Then there're Functions, which can do things like replace text, trim it, do case conversions, etc. Actions can automate repetitive tasks.
You can import your QuodLibet library, lookup tags using Amazon (including cover art), Discogs (does cover art too!), FreeDB and
MusicBrainz. There's quite a bit more, but I've reached my comma quota.
Supported formats: ID3v1, ID3v2 (mp3), MP4 (mp4, m4a, etc.), VorbisComments (ogg, flac), Musepack (mpc), Monkey's Audio (.ape) and WavPack
(wv).
OPTIONS
directory path
Path to any directory which'll be loaded on startup.
-h, --help
Show help message and exit.
--langfile=LANGFILE
Path to a translation (.qm) file. If valid, this file'll be used to translate puddletag. Otherwise the last translation chosen will
be used.
--fontsize=FONTSIZE
Default font size to use (in points). All UI elements except the file-view will use this font size.
-d, --debug
Show (useless) debug messages. Do not use.
SEE ALSO
The puddletag website ( http://puddletag.sourceforge.net ) contains more info. It is also the best place to get help.
puddletag Version: 0.10.4, Revision: 422 April 2011 PUDDLETAG(1)