10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
MyLOG:
2017/11/12 17:01:54.600 : Error: LPID: 3104680848 WRONG CRITERIA FOUND. tRealBuilder::Generate
Output Required:
If Ke word "WRONG CRITERIA FOUND" in latest log ( logs are regularly generating - real time) mail to us
once mailed wait for 2 hours for second mail.
mail subject... (3 Replies)
Discussion started by: vivekn
3 Replies
2. Shell Programming and Scripting
hi list,
I am currently looking to develop an installation script which writes out .conf files based on existing .conf files according to variables which are set in a settings file.
For example I have a settings file like so:
ip=192.168.1.1
hosts=localAnd I want to read a file which... (3 Replies)
Discussion started by: landossa
3 Replies
3. Shell Programming and Scripting
Hi All,
Need a small help. I have a log file which keeps updating for every Minute with multiple number of lines. I just want to grep few properties which has latest Date and Time to it. How do i do it?
I wanted to grep a property by name "Reloading cache with a maximum of" from the... (4 Replies)
Discussion started by: nvindraneel
4 Replies
4. Shell Programming and Scripting
I have requirement to prepare script which will grep for latest outofmemory message from the logs. I have used following command to grep the string from the logs,this script is not effective when logs are not getting updated as it will grep for old message.
f=catalina.out
var=`tail -10 $f |... (17 Replies)
Discussion started by: coolguyamy
17 Replies
5. Shell Programming and Scripting
Hello everyone,
I have some data files, with mixed header formats. the sample for the same is:
>ABCD76567.x1
AGTCGATCGTAGTCGTAGCTGT
>ABCD76567.y1
AGTCGATCGTAGTCGTAGCTGT
>ABCD76568.x1 pair_info:898989
AGTCGATCGTAGTCGTAGCTGT
>ABCD76568.y1 pair_info:893489
AGTCGATCGTAGTCGTAGCTGT... (2 Replies)
Discussion started by: ad23
2 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I looking to use grep to return a string with exactly n matches.
I'm building off this:
ls -aLl /bin | grep '^.\{9\}x' | tr -s ' '
-rwxr-xr-x 1 root root 632816 Nov 25 2008 vi
-rwxr-xr-x 1 root root 632816 Nov 25 2008 view
-rwxr-xr-x 1 root root 16008 May 25 2008... (7 Replies)
Discussion started by: MykC
7 Replies
7. Shell Programming and Scripting
hi all,
not sure if this has been posted b4 but i try to search but not valid.
this is my question:
when i do a ls -ltr there will be a list generated as follows:
-rw-r--r-- 1 root sys 923260 Jan 10 04:38 FilePolling.41025.083TL021.xml
-rw-r--r-- 1 root sys 1761337 Jan 10 04:40... (12 Replies)
Discussion started by: lweegp
12 Replies
8. Shell Programming and Scripting
:)
Hi,
I use the following command to search for a string in all the files in the directories and sub directories.
find . -type f -print | xargs grep bermun@cial.net
Can someone please cite a method wherin I can find the entries from a list of 300-500 *.gz files by modifying the above... (2 Replies)
Discussion started by: openspark
2 Replies
9. Shell Programming and Scripting
Hi gurus
I am currently using the below mentioned grep to find timestamp of last generated log file.
touch -t $time_search dummy
ecust_time_stamp=$(find . -name 'eCustomerCME*' -newer dummy -type f -exec ls -ltr {} \; | tail -1 | awk ' { print $6,$7,$8 } ')
I calculate... (3 Replies)
Discussion started by: ragha81
3 Replies
10. UNIX for Dummies Questions & Answers
Hi Everybody!
Situation:
I have a large ASCII file (for example: 1-2 Mbytes) without linebreaks (\n).
Task:
I like inserting linebreaks after all 420 digits (byte).
(pattern: *\n*\n*\n...etc.)
My problem:
How? :-)
I like using shell script or (maybe) AWK (short) program.
Please,... (2 Replies)
Discussion started by: hviktor
2 Replies