10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies
2. Shell Programming and Scripting
Hi ,
I am a newbie!!!
I want to develop a script for deleting files older than x days from multiple paths. Now I could reach upto this piece of code which deletes files older than x days from a particular path. How do I enhance it to have an input from a .txt file or a .dat file? For eg:... (12 Replies)
Discussion started by: jhilmil
12 Replies
3. Shell Programming and Scripting
Greetings!
I'm looking for starting information for a shell script. Here's my scenario:
I have multiple folders(100) for example:
/www/test/applications/app1/logs
/www/test/applications/app2/logs
Within these folders there are log files files that need to be deleted after a month.
... (3 Replies)
Discussion started by: whysolucky
3 Replies
4. Shell Programming and Scripting
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies
5. Shell Programming and Scripting
Hi,
I work on a jumpserver and I wrote a script to transfer a file from source server to destination server.
#!/bin/ksh
echo "\nEnter the file name:\n"
read name
echo "\nSelect the Source server\n"
echo "1. ODS PROD "
echo "2. ODS DROPBOX"
echo "3. ODS STE"
echo "4. ODS STE DROPBOX"... (6 Replies)
Discussion started by: ajayakunuri
6 Replies
6. Shell Programming and Scripting
I would like to change permissions recursively on a remote folder.
Seems like sftp has a limitation, I am only able to change permission on a individual file..
sftp > chmod 777 /usr/local/apache/docs/test.txt
It would be great if someone has more knowledge on how this is doable recursively? (1 Reply)
Discussion started by: almeisan1
1 Replies
7. Shell Programming and Scripting
its urgent!!!!!!111
i need a script which can delete data from multiple files.
plz if anybody knows the script plz write a mail to me :
(Email addresses are not allowed) (5 Replies)
Discussion started by: uni_ajay_r
5 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I am working with about 500,000 text files and 90% of them are duplicates. I need a way to delete the duplicate ones.
The files are email messages with the following file name examples:
20040129-1457 This is the Subject line.txt
20040129-1457 This is the Subject line-1.txt... (3 Replies)
Discussion started by: navycow
3 Replies
9. UNIX for Dummies Questions & Answers
hi all,
i would like to how to perform remote search on a tandem machine from solaris box. I have the userid and password to log in.
But the directory, file structures, naming conventions are different.
now how to search for a particular pattern of files say, <user1><date>.log files in... (0 Replies)
Discussion started by: matrixmadhan
0 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I want to search the files in a remote machine for a particular string. The SSH command I wrote is giving an error even when the syntax is correct.
ssh user@hostmachine find . -name "*.txt" -exec grep "ARIVU" '{}' \;
The error it gives is find: missing argument to `-exec'
When the... (2 Replies)
Discussion started by: a_rivu
2 Replies