Sponsored Content
Full Discussion: Saving files
Top Forums Shell Programming and Scripting Saving files Post 302515419 by zaxxon on Wednesday 20th of April 2011 04:30:09 AM
Old 04-20-2011
Quote:
Sorry thats not the answer for my question..
Do you have a card with the answer in your hand?

Quote:
I need a script to copy all the files and its contents from a any directory structure to a particular location at ur hard drive
The easiest command to copy files is cp. When you copy a file, you always copy it's contents. Else it would not be copying but more like setting a link.
The command cp takes any local source and any destination as parameter.

So it answers your written question. Maybe rephrase your question.

Last edited by zaxxon; 04-20-2011 at 07:56 AM.. Reason: added "local"
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

saving a vi session

Apologies if this isn't quite the right thread I have a vi session and I have set a lot of tags with 'mx'. can I save this session preserving these tags so when I go back to the session I don't have to reset them all? cheers (0 Replies)
Discussion started by: ajcannon
0 Replies

2. UNIX for Dummies Questions & Answers

Crontab keeps saving empty files of the job file.

Hey, MAILTO=cron@domain.ca */20 * * * * /usr/bin/wget http://list.domain.ca/admin/consume.php >/dev/nullthats what the crontab is setup todo, so basically every 20minutes it runs consume.php In my root directory, i'm getting files like this: consume.php consume.php1 consume.php2 i woke... (3 Replies)
Discussion started by: iarp
3 Replies

3. UNIX for Dummies Questions & Answers

Saving or writing files in unicode - IS0-8859-5

Hi, I have problems in saving/writing files that contains Unicode characters - to be specific ISO-8859-5. The source file contains correct Unicode characters, should I add specific unix scripts before writing the said file? Many thanks, ahrong09 (0 Replies)
Discussion started by: ahrong09
0 Replies

4. Shell Programming and Scripting

recursive saving of files and folders

Hi all I have a bash script, that loops through a folders files and all subfolders for .shtml files. It looks for a string and replaces it, creating a backup of the original file. This all works great, but I'd like, when the backup is done, that the files are then also created in their... (4 Replies)
Discussion started by: terrid
4 Replies

5. UNIX for Dummies Questions & Answers

Silly question-how i refer to the current directory when saving files

I want to save a bunch of files to a folder in my current directory. Ho do i refer to my current directory without writing all the path? (2 Replies)
Discussion started by: FelipeAd
2 Replies

6. UNIX for Dummies Questions & Answers

Assistance with combining, sorting and saving multi files into one new file

Good morning. I have a piece of code that is currently taking multiple files and using the CAT.exe command to combine into one file that is then sorted in reverse order based on the 3rd field of the file, then displayed on screen. I am trying to change this so that the files are being combined into... (4 Replies)
Discussion started by: jaacmmason
4 Replies

7. Shell Programming and Scripting

parsing txt file, saving graphics files

hi everyone, i am a newbie in shell programming. and i want to simply go through a text file that contains 3 "columns", split by ';' customerID ; link-to-contract ; save-as-filename so an example would simply look like this now i want to loop through every line, and save the file from... (3 Replies)
Discussion started by: Confidence
3 Replies

8. Shell Programming and Scripting

Read each line and saving the line in separate files

Hi Experts, I am having a requirement like this; Input file EIM_ACCT.ifb|1001|1005 EIM_ADDR.ifb|1002|1004 EIM_ABD.ifb|1009|1007 I want to read each line of this file and pass each line,one at a time,as an argument to another script. eg; 1.read first line->store it to a file->call... (2 Replies)
Discussion started by: ashishpanchal85
2 Replies

9. Shell Programming and Scripting

Input not saving correctly in both files

If the user inputs two variants separated by a comma, the below command is supposed to write both variants to the GJ-53.txt and then to out.txt. Both are written to the GJ-53.txt, however only one is written to out.txt and I'm not sure why. Thank you :). gjb2() { printf "\n\n" ... (1 Reply)
Discussion started by: cmccabe
1 Replies

10. Shell Programming and Scripting

Saving files with file name as output

Hi, i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory. If i give this command : -o spec$(date -u +%Y%m%dt%H%M) it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
updmv(8)						      System Manager's Manual							  updmv(8)

NAME
updmv - Moves customized, user, and inventory data files to or from storage. SYNOPSIS
/usr/bin/updmv -i location /usr/bin/updmv -o location OPTIONS
Copies the Customized File Inventory (CFI) and User File Inventory (UFI) files and those files listed in these inventory files from the specified location to the /var/adm/install/update directory. Copies the CFI and UFI files and those files listed in the inventory files to the specified location. OPERANDS
Specifies the storage area of the files. This area can be a tape device, disk device, or a Remote Installation Services (RIS) server area. You replace the location operand with the name of the tape or disk device, or the server name for a RIS server area. For tape stor- age, you must use a no-rewind tape device such as /dev/ntape/tape0_d0. For disk storage, specify the complete directory path. For storage in a RIS server area, you must register the client in the server's RIS database. When you specify the server, the server name must be followed by a colon (:). DESCRIPTION
The updmv utility moves files listed in the User File Inventory (UFI) file and the Customized File Inventory (CFI) file to or from storage. The UFI file, created by the genufi utility, identifies user files created after you installed the operating system. The CFI file, created by the invsync utility, identifies files that were customized after the installation. You must have superuser privileges to run the updmv utility. During a new installation, some user files and customized files can be overwritten. You can identify and save files from the current installation environment for later integration into the new installation environment. Use the updmv utility to move these files to a stor- age area or from the storage area to the update area. To store the files listed in the CFI and UFI files, invoke the updmv utility with the -o option followed by the location operand. The sys- tem must be shut down to single-user mode before you specify the updmv utility with the -o option. To make these files accessible for integration into a new installation environment, invoke the updmv utility with the -i option followed by the location operand. The updmv utility moves the listed files to the /var/adm/install/update directory so that they can be merged into the new installation environment with the updmerge utility. EXAMPLES
Save the files to a tape device: # updmv -o /dev/ntape/tape0_d0 You must use a no-rewind tape device. Store the files on a disk device: # updmv -o /mnt/mydata Store the files in a RIS server area: # updmv -o midvale: To restore these files, replace the -o option with the -i option. Restore the files that were stored in a RIS server area: # updmv -i midvale: The restored image resides in /var/adm/install/update. RESTRICTIONS
You must have superuser privileges to run the updmv utility. The system must be in single-user mode before you invoke the updmv utility with the -o option. FILES
Customized File Inventory User File Inventory SEE ALSO
genufi(8), invsync(8), updmerge(8) updmv(8)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy