Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to copy files and record original file location? Post 302624687 by Corona688 on Monday 16th of April 2012 02:33:53 PM
Old 04-16-2012
Just make a list of their locations then.

Code:
find /absolute/path/to/folder -type f -iname '*.txt' -exec cp '{}' /path/to/destination -print | sed 's/$/\r/g' > list-of-locations.txt

It will copy the file, then print the name to stdout, where sed will add carriage returns so windows can read it the list and finally redirect that into list-of-locations.txt
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

command to copy files with original ownership

Hi, I need a command that to copy files from others and to keep files' ownership. Example: I copy file.txt from users "abc" to my local, and file.txt is own by user "abc" in local. Thanks in advance! (3 Replies)
Discussion started by: need_help
3 Replies

2. UNIX for Advanced & Expert Users

copy files from one location to similar location

I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure, say location 1, /home/rick/tmp_files/1-12/00-25/ here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies

3. Shell Programming and Scripting

Shell Script for Copy files from one location to another location

Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies

4. Shell Programming and Scripting

Search Files from Array and link to original location in Perl

Hello, Question is related to Perl: I need to search few of the files from the array of file names. And after grepping the file names from an array I need to link these files to original location. The original location in this case is ref_path as input from the user. ##$ref_path is... (3 Replies)
Discussion started by: aarora1
3 Replies

5. Shell Programming and Scripting

How to copy a file from one location to another location?

I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt. Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies

6. Shell Programming and Scripting

command to copy original files from links in HP-UX

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide command for this? Thanks in advance. (2 Replies)
Discussion started by: venkatababu
2 Replies

7. UNIX for Advanced & Expert Users

copy original files from links

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide HP-UX command for this? note: cp -L is not working in HP-UX Thanks in advance. (1 Reply)
Discussion started by: venkatababu
1 Replies

8. Shell Programming and Scripting

Restoring a file to its original location

Hello everyone, I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies

9. Shell Programming and Scripting

Copy files from one location to another

I have below files in one location /test/files and also for each dates there are similar files A20130924.0000-0005_file1 A20130924.0000-0005_file2 A20130924.0005-0010_file1 A20130924.0005-0010_file2 . . . A20130924.2355-0000_file1 A20130924.2355-0000_file2 If i execute the script like... (4 Replies)
Discussion started by: Saidul
4 Replies

10. Shell Programming and Scripting

Copy files based on specific word in a file name & its extension and putting it in required location

Hello All, Since i'm relatively new in shell script need your guidance. I'm copying files manually based on a specific word in a file name and its extension and then moving it into some destination folder. so if filename contains hyr word and it has .md and .db extension; it will move to TUM/HYR... (13 Replies)
Discussion started by: prajaktaraut
13 Replies
evmd(1M)																  evmd(1M)

NAME
evmd - Event Manager daemon SYNOPSIS
DESCRIPTION
The Event Manager (EVM) daemon, receives events from posting clients and distributes them to subscribing clients that have indicated that they are interested in receiving the events. The daemon is a critical system facility that is started automatically when the system tran- sitions to run level 2, and which should not be terminated. The daemon in turn starts the event logger, and the channel manager, On startup, the daemon reads its configuration file, the authorization file, and the event template files stored under the directory. If these files are modified while the daemon is running, the command must be used or a signal must be sent to instruct the daemon to reconfig- ure itself. The system administrator can control access to events by modifying the EVM authorization file, As a daemon, does not have a standard output. Any error messages are written to the file The EVM daemon is monitored by the Essential Services Monitor daemon, which automatically restarts if it terminates unexpectedly. See esmd(1M) for more information. RETURN VALUES
The following exit values are returned: Successful completion. An error occurred. WARNINGS
The daemon rejects any attempt by a posting client to post an event that has one or more of the following problems: o The event is not registered. o The event contains invalid item values. o The posting client is not authorized to post such an event. FILES
Default directory for event template files Default location for event filter files. Filter files must have the suffix Error log file for UNIX domain socket established for connection between the EVM daemon and the local clients Daemon process id saved by Lock file established to prevent multiple invocations of the daemon Default location of the EVM daemon configuration file Default location of the EVM daemon authorization file SEE ALSO
Commands esmd(1M), evmchmgr(1M), evmlogger(1M), evmreload(1M), evmstart(1M), evmstop(1M). Files evm.auth(4), evmdaemon.conf(4), evmtemplate(4). Event Management EVM(5). Event Connection EvmConnection(5). EVM Events EvmEvent(5). Event Filter EvmFilter(5). evmd(1M)
All times are GMT -4. The time now is 02:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy