copy and rename list of files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers copy and rename list of files
# 8  
Old 02-27-2005
Thanks..
once I changed the first line to #!/bin/sh, it works fine. Thanks for yr help!!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Oop to copy and rename files through SQL Statement in shell Script

#!/bin/sh sqlplus -s "/ as sysdba" << EOF SET HEADING OFF SET FEEDBACK OFF Select pt.user_concurrent_program_name , OUTFILE_NAME FROm apps.fnd_concurrent_programs_tl pt, apps.fnd_concurrent_requests f where pt.concurrent_program_id = f.concurrent_program_id and pt.application_id =... (1 Reply)
Discussion started by: usman_oracle
1 Replies

2. Shell Programming and Scripting

Linux Script to copy and rename files through SQL statement

Hi, I require help to complete below requirement through Linux Script. I have a SQL query which shows two columns as output. One is Report Name and other is report path. Query return multiple rows. below is the output. Report Name Cotton Stock Report (Net Weight)- Customized Output... (3 Replies)
Discussion started by: usman_oracle
3 Replies

3. Shell Programming and Scripting

Is better way copy list of multiple files, rename and gzip

Is better way to write the script loop through one by one "Old_File_1: & New_File_1:" to copy 100 files to /staging/test folder then re-name & gzip all those files? I wrote this code below and don't like that much. Thanks I have a control_file under /tmp/test folder like below 100 files and... (10 Replies)
Discussion started by: dotran
10 Replies

4. Shell Programming and Scripting

Copy down remote files and rename them to include the server name with full path

I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names. I need to do two parts: FIRST: I have this example, but it does not list the server name in front of each line. #! /bin/bash for server in $(<... (10 Replies)
Discussion started by: asnatlas
10 Replies

5. Shell Programming and Scripting

How to Rename List of files in a directory

How can i rename list of files in a directory? (4 Replies)
Discussion started by: knip
4 Replies

6. Shell Programming and Scripting

Help with script to copy/rename files, then delete by date

Hi All, I am new to scripting and am looking for some assistance setting up a script. Basically I need the script to scan a folder for the newest files and make a copy of those files, adding a month to the date stamp. I also need this script to delete the previously copied files to save space.... (4 Replies)
Discussion started by: Lucid13
4 Replies

7. Shell Programming and Scripting

Files rename and copy

hello, I am write a Script and i would listing all Files from Path1 out with DSR*.txt and give a new name an copy to the Path2. I have problems with that to rename. Someone can help me? Sorry, for my english. My english is not gut. I hope you understand my. That is my Script. ... (2 Replies)
Discussion started by: efeijoo
2 Replies

8. Shell Programming and Scripting

Copy files from folder and rename them

hello, I need to build a shell script that receives the folder to copy by parameter and copy all files except thumb.db to another folder and rename them like, file.jpg renamed to file_bb1.jpg. can someone help me Thanks (4 Replies)
Discussion started by: zeker
4 Replies

9. UNIX for Dummies Questions & Answers

script to rename files with current date and copy it.

I have few webservers logs like access.log. which would be growing everyday. what i do everyday is, take the backup of access.log as access.log_(currentdate) and nullify the access.log. So thought of writing a script... but stuck up in middle. My requirement: to take the backup and nullify... (6 Replies)
Discussion started by: logic0
6 Replies
Login or Register to Ask a Question
efi_cp(1M)																efi_cp(1M)

NAME
efi_cp - copy to or from EFI file SYNOPSIS
devicefile] file1 file2 devicefile] file1 [file2]... dest-directory devicefile] file_or_dir1 [file_or_dir2]... dest-directory DESCRIPTION
copies files between HP-UX and EFI file systems. The EFI file system is based on the FAT file system and used by the Itanium-based system BIOS to locate an HP-UX bootloader. See efi(4). Without the option, copies from an HP-UX file system to the EFI volume specified by devicefile; in this case, the destination should be relative to the root of the EFI volume specified by devicefile. Use the option to copy from an EFI file system to an HP-UX file system; with the option, only a single regular file may be copied at a time. With two arguments: o If file2 does not exist, creates it and copies the contents of file1 into file2. o If file2 exists and is a regular file, deletes the the contents of file2 and copies the contents of file1 into file2. o If file2 exists and is a directory, creates a copy of file1 in that directory. With more than two arguments, the final argument must be an existing directory. If any of the other arguments is a directory, you must use the option, which specifies that the source directory and the subtree rooted there are to be copied to the destination directory. Options Options can be used singly or combined in any order before the file names. The space between option and argument is optional. devicefile is the device special file of the EFI file system to be copied. Without the option, uses the device file specified in the environment variable if it is defined. The option overrides the environment variable. Recursively copy the subtree rooted at each source directory to the destination directory. Copy file1 from an EFI volume to file2 in HP-UX file system. file1 should be relative to the root of the EFI volume specified by devicefile, not to an HP-UX file system. With the option, only a single regular file may be copied at a time. RETURN VALUE
returns exit code 0 if the copy is successful. Otherwise it prints a diagnostic message and returns nonzero. 0 Successful completion. >0 Error condition occurred. EXAMPLES
All the following examples copy to or from the EFI file system on device Copy into directory in the EFI file system on the specified device: Copy all files in current directory into directory in the EFI file system on the specified device Copy into directory in the EFI file system on the specified device and rename it Copy into the EFI boot directory of the EFI file system on the specified device: Copy into of the EFI file system on the device specified in the environment variable and rename it to Copy from the EFI file system on the specified device into the current HP-UX directory: Using a persistent device special file (dsf) copy from the EFI file system on the specified device into the current HP-UX directory (see intro(7)): AUTHOR
was developed by HP. SEE ALSO
efi_fsinit(1M), efi_ls(1M), efi_mkdir(1M), efi_rm(1M), efi_rmdir(1M), efi(4), intro(7). Itanium(R)-based Systems Only efi_cp(1M)