10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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
2. Shell Programming and Scripting
I sent some files a remote server using simple ssh command line:
rsync -e 'ssh -p SSH-PORT' -vr --log-file=/var/log/rsync.log /home/USER/www/* USER@IP:/home/USER/www
Then I would like to check if files in server1 are the same, file size check or any other way to make... (4 Replies)
Discussion started by: Abu Rayane
3. UNIX for Dummies Questions & Answers
I have a setup where I have two drives.
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
4. Shell Programming and Scripting
Thanks in Advance
I wrote the following code
echo "version is 1.1"
for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account"
... (5 Replies)
Discussion started by: aealexanderraj
5. Shell Programming and Scripting
I am trying to create a bash script which will check if file exist then remove that file else do nothing. I have to do same process for three files in same script. I have written code for one file and trying to run it.
rm -r /user1/abc/File1
When I run this code it... (1 Reply)
Discussion started by: palak08
6. Shell Programming and Scripting
I have a pipe delimited file. I am checking for junk characters ( non printable characters and unicode values).
I am using the following code
grep '' file.txt
But i want to ignore the name fields. For example field2 is firstname so i want to ignore if the junk characters occur... (4 Replies)
Discussion started by: ashwin3086
7. 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
8. Shell Programming and Scripting
I have the below script to check whether directory is exist or not , now I sure the directory /abc NOT exist , but when run the script , it still pop the result is "the directory exist" , could suggest what is wrong ? thx
ll -d /abc > /dev/null 2>&1
echo "the directory exist !!"
... (7 Replies)
Discussion started by: ust
9. 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.
Check if C:\logs\file1_currentdate exists (if not, add file1_currentdate to... (1 Reply)
Discussion started by: SunnyK
10. Shell Programming and Scripting
I would like to perform bash which would check the file A.txt to be size 0 or not. If the size is 0, I would copy file B.txt to replace A.txt.
-Jason (6 Replies)
Discussion started by: ahjiefreak