10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
Whenever i get 10 files(file names like sales*) then another file need to create.
May i know how to implement this in KSH. (4 Replies)
Discussion started by: siddireddy
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
We have two (2) servers named primary and standby. There is a directory named /db01/archive that we need to keep in-sync.
Files get transferred from primary and standby. Sometimes when we do a failover or when there is a network issue, some files fail to get transferred.
I want to use... (3 Replies)
Discussion started by: newbie_01
3 Replies
3. UNIX for Dummies Questions & Answers
I have a setup where I have two drives.
TV
TVbackup
For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive.
I want to copy all the files across which are on TVbackup but are not currently on TV.
If there is a file with the same name but a... (2 Replies)
Discussion started by: Spadez
2 Replies
4. Shell Programming and Scripting
Hi All,
Thanks in Advance
I wrote the following code
if
then
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
do
FILE="SDP_DUMP_$i.csv"
echo "$FILE"
... (5 Replies)
Discussion started by: aealexanderraj
5 Replies
5. Shell Programming and Scripting
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Discussion started by: joseph.dmello
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
i am having a directory in which files are having space in the name .
$ls -1
aa b.txt
my file.pdf
lost file.csv
foo_file.txti want to copy those file to some where with date +%F as extension . But it failed for the file having space.
#!/bin/sh
ls -1 >tt
for var in `cat tt`
do
b=$var... (2 Replies)
Discussion started by: posix
2 Replies
7. Shell Programming and Scripting
Hi everyone. I am trying to write a bash script that will copy files from one directory to another but I need to be able to check the directory that I'm copying the files to and see if the file already exists. If it does I need to add a number at the end of the copied file. Thanks for your help. (3 Replies)
Discussion started by: snag49ers
3 Replies
8. HP-UX
Hi,
I am using HP-UX B 11.23
I want to copy files from one directory into another directory in such a way that, only the nonexistent files in target directory are copied from source directory
e.g.
dir1 has
file1
file2
file3
dir2 has
file1
file3
now I want that a command... (7 Replies)
Discussion started by: Chetanaz
7 Replies
9. Shell Programming and Scripting
I'm attempting to write a pretty simple script. It opens a Filemaker file successfully. That Filemaker file takes around 30-90 seconds to finish. When it's done, it writes a few .xml files into the same directory where my shell script and the Filemaker script reside.
In my script, how can I... (2 Replies)
Discussion started by: alternapop
2 Replies
10. Shell Programming and Scripting
We recieve some logs on our windows box via FTP on a daily basis, in the same directory. I would like to check for missing logs files and add their name to a text file.
Something like...
Check if C:\logs\file1_currentdate exists (if not, add file1_currentdate to... (1 Reply)
Discussion started by: SunnyK
1 Replies