11-30-2007
One gross solution could be (Not tested).
LIST=`cat mylist`
LOCATION=/some/location
for file in $LIST
do
cp $file $LOCATION
done
HTH,
enc.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writing a simple backup script, but I cannot figure out how to remove directories that are found in a list. For example:
DONT_COPY="
.adobe/
.bin/google-earth
"
tar -zcvf - * --exclude=$DONT_COPY | openssl des3 -salt -k $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz > COPIED
Note that... (4 Replies)
Discussion started by: dotancohen
4 Replies
2. Shell Programming and Scripting
Hi, i am new to shell scripting. i have a requirement to copy the files from a windows shared location( vendor will place the files here) to Linux server( my Informatica will pick the files from this location). Files should be loaded in the order in which they were placed in windows box.(Based on... (1 Reply)
Discussion started by: Haari
1 Replies
3. Shell Programming and Scripting
Hi All,
I need to find and list the last 5 days files in that exact name with "MIM" and copy to another directory.
please help me in this there is around 30000 files
Thanks
Murali (7 Replies)
Discussion started by: 969murali@gmail
7 Replies
4. Shell Programming and Scripting
A) I would like to achive following actions using shell script. can someone help me with writing the shell script
1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using
find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies
5. Shell Programming and Scripting
Hi Gurus,
I am a newbie to shell scripting and I am facing a problem right now.I have to automate the copy of files based on a priority.The scenario is as below:
1) There will be files from Mon-Fri with Mon file being named as abc_def_01_YYYYMMDD and Tue file being abc_def_02_YYYYMMDD and so... (4 Replies)
Discussion started by: vikramgk9
4 Replies
6. Shell Programming and Scripting
Hi,
I need to write a script the has to copy the files from folders and subfolders to the same folder structure located in another location.
Ex:
mainfolder1
file1,file2,file3 subfolder1(file1,etc) subfolder2(file1,etc) to another folder location of same folder structure.
rsync is not... (7 Replies)
Discussion started by: Raji Perumal
7 Replies
7. Shell Programming and Scripting
guys, i did create a script but its too long, though it function the same.
# cat nightlyscan.sh
#!/usr/ksh
deyt=`date +"%Y-%m-%d"`
for i in `ls -lrt|grep $deyt|awk '{print $9}'`
do
cp -f $i /S1/Sophos/logger/
done
#
but i did not paste it all.
this is the desired. (9 Replies)
Discussion started by: kenshinhimura
9 Replies
8. Shell Programming and Scripting
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
9. UNIX for Beginners Questions & Answers
Hello All,
I want to copy all files from the list below to a path /qa0/repo/AS/CPY
(lnx17:qa0:/qa0/repo/AS>) ls -lrt | grep 'Feb 14'
-rw-rw-r-- 1 Ks1 qa0 39 Feb 14 20:11 HHH.dat
-rw-rw-r-- 1 Ks1 qa0 32 Feb 14 20:11 HHH1.dat
-rw-rw-r-- 1 Ks1 qa0 29 Feb 14 20:11... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
10. Shell Programming and Scripting
Hi All,
i'm trying to copy the 1.txt files (sample files) in to different path location using the below command.
But it is not copying the files , when i tried for single location able to copy the file.
can any one please assist here.
Please find the below path :-
/ckr_mkr1/licencekey... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT OPENSOLARIS
inityp2l
inityp2l(1M) System Administration Commands inityp2l(1M)
NAME
inityp2l - create NIS (YP) to LDAP configuration files
SYNOPSIS
/usr/lib/netsvc/yp/inityp2l [-m mapping_file_name]
[-c config_file_name]
DESCRIPTION
The inityp2l utility assists with creation of the NISLDAPmapping and ypserv files. See NISLDAPmapping(4) andypserv(4). inityp2l examines
the NIS maps on a system. and through a dialogue with the user, determines which NIS to (and from) LDAP mappings are required. A
NISLDAPmapping file is then created based on this information. The utility asks users about their LDAP server configuration and a ypserv
file is created based on this information.
The inityp2l utility handles mappings for standard NIS maps and the auto.* series of maps. If requested, it creates default mappings for
custom maps, with each map entry represented as a single DIT string. inityp2l does not handle full custom mapping, but if requested, ini-
typ2l will insert comments into the NISLDAPmapping file that indicate where these should be added.
To write to the NISLDAPmapping or ypserv files is potentially dangerous. inityp2l warns the user and asks for confirmation before:
1. it overwrites either file
2. it writes to the default NISLDAPmapping file location, if this file did not previously exist. This is important because the
existence of a file in this location causes NIS components to work NIS to LDAP (N2L) mode when next restarted, rather than to
traditional NIS mode.
inityp2l assists with rapid creation of a simple N2L configuration files. It is not a general purpose tool for the management of these
files. An advanced user who would like to maintain the files or use custom mappings should examine the output of inityp2l and customize it
by using a standard text editor.
OPTIONS
inityp2l supports the following options:
-c Specify the name of the generated ypserv file. The default location is described in .
-m Specify the name of the generated NISLDAPmapping file. The default is described in .
FILES
/var/yp The directory to be searched for candidate domains (/var/yp/*) and NIS maps (/var/yp/*/*)
/var/yp/NISLDAPmapping The default location for the generated NISLDAPmapping file
/etc/default/ypserv The default location for the generated ypserv file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWypu |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
NISLDAPmapping(4), ypserv(4), attributes(5)
SunOS 5.11 10 Apr 2003 inityp2l(1M)