I fix the error now
and it works thanks alot
but what i wanna do that i have already those directories
and i just want to take those files and put it in those directories that i have the directories is already created i want to put those files in those directories
i want every file search for his directory and put a copy into that directory
and all files i have begin with 10_10 and i want him to search after the last _
like i have 10_10_11
thanks for your help and your time
It will be a greate honor of you help me in that code
thanks
I fix the error now
and it works thanks alot
but what i wanna do that i have already those directories
and i just want to take those files and put it in those directories that i have the directories is already created i want to put those files in those directories
i want every file search for his directory and put a copy into that directory
and all files i have begin with 10_10 and i want him to search after the last _
like i have 10_10_11
thanks for your help and your time
It will be a greate honor of you help me in that code
thanks
Sorry, it's not clear to me what the problem is.
What should be the name of the directory if the filename is 10_10_11?
the name of the directory should be the same as the name of the file 10_10_11
but i haved already those directories i don't want to make directory i want to put those files into those directory i have 3 files
i want to put them in exist directory thart i have on my system
i want to make like a loop to search after the last "_" like 10_10"_"11
if he found th 11 put it in the same directory have in last 11
and same for 10_10_11_12
if he found in the llast _12 put it in the same directory 10_10_11_12 have the end _12
thanks for your time and help
Last edited by Scott; 08-08-2010 at 07:44 AM..
Reason: Code tags
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Hi ,
I'm trying to list the files and output is written to a file. But when I execute the command , the output file is being listed. How to exclude it ?
/tmp
file1.txt
file2.txt
ls -ltr |grep -v '-' | awk print {$9, $5} > output.txt
cat output.txt
file1.txt
file2.txt
output.txt (8 Replies)
Hi All,
Can any one help me to list out the directory names which contain the specified file.
See for example
File name : file.201307014.LKT
Have the directory structure as below.
/app/work/data/INDIA/file.201307014.LKT
/app/work/data/AMERICA/file.201307014.KTP... (5 Replies)
Hi
I have 3 directories
indexes_with_ts
indexes_without_ts
process_indexes
in each directories it contains *.sql
how do I accomplish this:
for all the files found in indexes_without_ts, copy the corresponding file in indexes_with_ts to process_indexes.
i.e.
for... (2 Replies)
Hello,
I have a folder with a massive amount of files, and I want to copy out a specific subset of the files to a new directory. I would like to use a text file with the filenames listed, but can't get it to work.
The thing I'm hung up on is that the folder names in the path can and do have... (5 Replies)
Hi.
I have a list with file names like
testfile1.wav
testfile2.wav
testfile3.wav
and a folder that contains a large number of wav files (not only the ones on the list).
I would like to copy the files whose names are on the list from the wav file directory to a new directory.
I... (5 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (0 Replies)
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)