Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple File Update

Status
Not open for further replies.

beaster

Technical User
Aug 20, 2001
225
US
I have a script running on a server which has one file called members.list

This file consists of many email addresses that the script uses to mail its output to.

The way it is set up is that the members.list file is only in one directory, but I want to put multiple copies in several users directorys for them to be able to add addresses as they need to, but I need the script to read the addresses from all the files in seperate directories.

Any thoughts?
 
Hi,
I dont know if it is a good idea to have multiple copies because a "corrected" email address will only exist in one file. However, you could do something like this:
cat file1 file2 file3 | sort -u > consolidatedfile
 
Symlinks, symbolic links, are basically links to another file. Like if you create a symlink named &quot;hi&quot; in your home directory linking to, say your mail spool, you can use &quot;hi&quot; has if it was your actual mail spool file. To create a symbolic link, you use &quot;[tt]ln -s <target> <filename>[/tt]&quot;. If you leave out filename, it will automatically use the same name as the target has. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top