10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
You will create a shell script that performs the following action:
Use a parameter to pass a file that... (5 Replies)
Discussion started by: Luvs2drnk
2. Shell Programming and Scripting
I'm trying to write a script to go through few folders read some log files and make a list from the data.
the log files are in few steps each step having a final energy but I need to read the last final energy coming after the keyword "hurray".
I have so far accomplished a code like... (16 Replies)
Discussion started by: raymondg
3. Shell Programming and Scripting
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
Discussion started by: ketanraut
4. Shell Programming and Scripting
I have below files in foler one/archive>
one. txt 6/21/2013
two txt 7/23/2013
I wanted to move all the old files (>30 days) compressing single .zip file into one/archive/ as below
two txt 7/23/2013
Please provide... (6 Replies)
Discussion started by: Ganesh L
5. Shell Programming and Scripting
Is there any way to change the file name while compressing ? using Compress and gzip and tar ?
Say, I have a file foo.txt - so I have to compress this file and the resultant file name is foo.txt_20130113.gz or foo.txt_20130113.Z
This to be done while performing the compression... (2 Replies)
Discussion started by: karumudi7
6. Shell Programming and Scripting
I want to create a script that will zip the previous log.
If today is 2012.12.03 , my current log is abc.log and my previous date is 2012.12.02, i want abc.log.2012.12.02 to compress everytime I run the script.
I can... (5 Replies)
Discussion started by: kaibiganmi
7. Shell Programming and Scripting
i need to backup a directory from one partition to another and and compress that directory after backing up, so i need to predict the compressed size of the directory with out actually compressing it, to check whether the space is available in the destination partition to accommodate the zipped... (2 Replies)
Discussion started by: Kesavan
8. Shell Programming and Scripting
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
9. UNIX for Dummies Questions & Answers
My first post in the forum. :)
I've this huge log files of size 20GB-30 GB in my unix server. I want to analyse the log file for some error messages. But because of the enormity of the size of these files i'm not able to grep/search the pattern in the file . Also, tried to gzip the... (1 Reply)
Discussion started by: sgbhat
10. UNIX for Dummies Questions & Answers
I have the following shell script code which tries to sftp and writes the log into the log file.
echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME
if ]; then rm $SCRIPT ; fi
echo "cd" $REMOTEDIR >> $SCRIPT
echo "quit" >>... (10 Replies)
Discussion started by: valluvan