10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Team,
I have prepared a script which I run from my remote machine(Jump-box)server
Below is the script
FILEDATE=`date +%F`
LOGFILE=/home/abc/scripts/xyz.$FILEDATE.log
find /home/abc/scripts/xyz.*.log -type f -mtime -3 -delete
touch $LOGFILE
exec 1>$LOGFILE 2>&1
#healthcheck batch runs... (1 Reply)
Discussion started by: whizkidash
1 Replies
2. Shell Programming and Scripting
Hi all,
I am using command
find $InputPath -type f -mtime +30
However, I need to capture the file listed in screen.
May I know how to achieve this?
Thank you. (12 Replies)
Discussion started by: ashly
12 Replies
3. Shell Programming and Scripting
I am fetching a database table in spool file and send that details as a email.
The Spooled file content is properly being displayed in UNIX.
See Example below :
ID|FILENAME |ABCDEF_DT |PROCESSED_DT |STATUS... (4 Replies)
Discussion started by: Ravi_007
4 Replies
4. Shell Programming and Scripting
Hi All,
I have spooled some data in a file (a.dat, b.dat etc..) and after that I want to get the size and checksum of spooled file (a.dat, b.dat etc..) in a log file(file_info.log).
By the way I dont want lost the previous output file info(Append data).
View of log file that I want to... (5 Replies)
Discussion started by: ce_emre21
5 Replies
5. Shell Programming and Scripting
I have 2 zip files which have about 20 million records in each file. file 2 will have additional records than file 1. I want to compare the records in both the files and capture the new records from file 2 into another file file3. Please help me with a command/script which provides me the desired... (8 Replies)
Discussion started by: koneru
8 Replies
6. Shell Programming and Scripting
Hi,
I would like to compare 2 files, and have a return code write to a file.
regardless of the files contents are the same the code should be writing to a file (if both files contents are same then return code 0).
A simple example will be great :)
Thanks (3 Replies)
Discussion started by: khchong
3 Replies
7. Shell Programming and Scripting
Hi...
Could somebody help me how could i captured all input files from the command line ?
As example:
#./myscript -i input -o output file1.txt file2.txt...
Then, based on the example how could i captured "file1.txt" and file2.txt ? could somebody help me ?
Attached is some of my... (1 Reply)
Discussion started by: bh_hensem
1 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
I'm spooling a file through sqlplus and sending using mailx but the output got distorted in MS-outlook.
Thanks in advance (2 Replies)
Discussion started by: chgopi
2 Replies
9. Shell Programming and Scripting
My folder (e.g. /opt/successlog/) creates many files thru cron jobs everyday. I would like to retreive all the today files in this folder into a log file. How to do this for KSH? Thanks! (3 Replies)
Discussion started by: Teh Tiack Ein
3 Replies
10. UNIX for Advanced & Expert Users
I am spooling a text file to printer under Sun Solaris m/c (solaris 7). I want to know which directory the spooled text file is stored before it goes to printer.
B'se my main problem is to find the escape sequence from the
text file to get landscape orientation. Now when ever I spool a file... (1 Reply)
Discussion started by: babulilly
1 Replies