Sponsored Content
Top Forums Shell Programming and Scripting how can i copy a list of files with different names into others directory have the same name Post 302441991 by t17 on Tuesday 3rd of August 2010 04:55:28 AM
Old 08-03-2010
Java how can i copy a list of files with different names into others directory have the same name

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 how to put 10_10 into directory 10_10
and 10_10_11 into 10_10_11 i want to make a loop to run this how to make it plz answer me as soon as possible i need ur help

i am using solaris
and i try that command

cp `ls | grep -n "10_10"| cut -f3-4 -d "_"` ./test2
Image

Moderator's Comments:
Mod Comment Please do not double / cross post. Continue here
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find list of files from a list and copy to a directory

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)
Discussion started by: manishabh
3 Replies

2. UNIX for Dummies Questions & Answers

How can i copy a list of files with different names into others directory have the same name?

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... (31 Replies)
Discussion started by: t17
31 Replies

3. Shell Programming and Scripting

how to copy files followed by list of names of all the files in /etc?

....... (2 Replies)
Discussion started by: pcbuilder
2 Replies

4. Shell Programming and Scripting

Copy files on a list to another directory

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)
Discussion started by: Bloomy
5 Replies

5. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

6. Shell Programming and Scripting

Copy list of files from a keyword list to another directory

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)
Discussion started by: twjolson
5 Replies

7. Shell Programming and Scripting

How to copy selective list of files to a directory?

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)
Discussion started by: jediwannabe
2 Replies

8. UNIX for Dummies Questions & Answers

List Directory names which have the file

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)
Discussion started by: Balasankar
5 Replies

9. Shell Programming and Scripting

How to list files names and sizes in a directory and output result to the file?

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)
Discussion started by: etldeveloper
8 Replies

10. Shell Programming and Scripting

Directory containing files,Print names of the files in the directory that are exactly same content.

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)
Discussion started by: anuragpgtgerman
7 Replies
CCD2ISO(1)							   User Commands							CCD2ISO(1)

NAME
ccd2iso - convert IMG format to ISO format SYNOPSIS
ccd2iso [FOO.IMG] [BAR.ISO] DESCRIPTION
ccd2iso converts FOO.IMG to ISO format and writes the result to BAR.ISO. If fewer arguments than expected are given, ccd2iso will print its help message and quit. If more arguments than expected are given, ccd2iso will silently ignore them and use only the first two argu- ments. IMG files are raw-data copies of optical media, generated primarily by the Windows application CloneCD, and are primarily used to store CDs with odd properties, such as sectors which need to have read errors when read. Conversion to ISO format removes this information, as ISO format does not support this. IMG files almost always include a SUB file, which contains additional data for the disc format, and a CCD file, which is a plaintext con- figuration file describing the disc layout. ccd2iso does not make use of these files, but the applications which generate them expect them to have the same FOO prefix as the IMG file. LIMITATIONS
ccd2iso currently only copies the first session of multisession discs, as well as outputting a harmless warning of Unrecognized sector mode. ccd2iso utterly ignores the additional data in CCD or SUB files. SEE ALSO
mdf2iso(1), nrg2iso(1) AUTHOR
This manual page was written by Rich Ercolani <rercola@acm.jhu.edu>, for the Debian GNU/Linux distribution (but it may, of course, be used by others), because the original program lacked a manual page. It may be distributed under the same terms as ccd2iso, the GNU GPL version 2 or later, at your option. ccd2iso 0.3 June 2006 CCD2ISO(1)
All times are GMT -4. The time now is 03:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy