10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
Discussion started by: Paras Pandey
2. Shell Programming and Scripting
I have a txt file and I would like to use egrep without using -v option to exclude the lines which matches with multiple Strings.
Let's say I have some text in the txt file. The command should not fetch lines if they have strings something like
CAT MAT DAT
The command should fetch me... (4 Replies)
Discussion started by: Sathwik
3. Shell Programming and Scripting
I have below script which is used to grep specific errors and if error string matches send an email alert.
Script is working fine , however , i wish to print next 10 lines of the string match to get the details of error in the email alert
tail -Fn0 --retry... (2 Replies)
Discussion started by: neha0785
4. Shell Programming and Scripting
I try to script something (bash-script) and can not find a way to get and store a match into a variable from a line in a file. grep isn't useful as the matches are not returned - just colored. I can't get 'expr' to work for me. Is it necessary to use a perl-script with regex instead?
... (7 Replies)
Discussion started by: daWonderer
5. Shell Programming and Scripting
I have a file file123.xml which looks like this
apn=property:address="wonderland"... (5 Replies)
Discussion started by: poga
6. Shell Programming and Scripting
Can someone tell me how I can do this?
Say file1.txt contains:
today is monday
the 22 of
and file2.txt contains:
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
7. UNIX for Dummies Questions & Answers
I have a file which contains huge data as
PDE 1990 1 9 18 51 28.90 24.7500 95.2800 118.0 6.1 0.0 BURMA
event name: 010990D
time shift: 7.3000
half duration: 5.0000
Mrr: ... (7 Replies)
Discussion started by: reva
8. Shell Programming and Scripting
I have one comma separated file (a.txt) with two or more records all matching except for the last column.
I would like to merge all matching lines into one and consolidate the last column, separated by ":". Does anyone know of a way to do this easily?
I've searched the forum but most talked... (6 Replies)
Discussion started by: giannicello
9. Shell Programming and Scripting
I have a directory with a large # of files and in each file I am looking to match a string in one file with a string in the subsequent n file(s). If there is a match between a string in one file and a string in the next n file(s) then delete the subsequent duplicate file(s). Here is sample input:
... (2 Replies)
Discussion started by: sitney
10. Shell Programming and Scripting
I know this is most likely possible using sed or awk or grep, most likely a combination of them together, but how would one go about running a grep like command on a file where you only try to match your pattern to the second field in a line, space delimited?
You are... (3 Replies)
Discussion started by: LordJezoX