Hello,
How do I use grep to find a pattern in a list of file and then display 5 lines after the pattern is matched
Eg:
I want to match the string GetPresentCode in all files in a folder and then see 4 lines following this match. I am not sure if grep is what should be used to achieve. Thanks!... (3 Replies)
Hello, can someone help me how to find a word and 2 lines after it and then send the output to another file.
For example, here is myfile1.txt. I want to search for "Error" and 2 lines below it and send it to myfile2.txt
I tried with grep -A but it's not supported on my system.
I tried with awk,... (4 Replies)
I have a file like this
DoctorName
Address1
Address2
DOB
InsuredName
Address1
Address2
DOB
PatientName
Address1
Address2
DOB
ClaimNo1
DoctorName
Address1
Address2
DOB
InsuredName (2 Replies)
Hi Guru's,
I am trying to grep a range of line numbers (based on match) and then look for another match which starts with a special character '$' and print the line number. I have the below code but it is actually printing the line number counting starting from the first line of the range i am... (15 Replies)
Hi Guys,
I want to display lines from Solaris syslog file but with 2 dates range. I have some similar solution (https://www.unix.com/shell-programming-scripting/39293-grep-log-file-between-2-dates-4.html) which works fine but as you know syslog has different date format (Jan 22) so this is not... (1 Reply)
Hi,
Need help to grep the following from a file x. I just want to grep exact match not lines and not partial word.
CONFSUCCESS
CONFFAIL
CONFPARTIALSUCCESS
>cat x
xczxczxczc zczczcxx CONFSUCCESS czczczcczc
czxxczxzxczcczc CONFFAIL xczxczcxcczczc
zczczczcz CONFPARTIALSUCCESS czczxcxzc
... (4 Replies)
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
The below bash connects to a site, downloads a file, searches that file based of user input - could be multiple (all that seems to work). What I am not able to figure out is how to display on the screen match found or no match found" and write a file to a directory (C:\Users\cmccabe\Desktop\wget)... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
replaygain
REPLAYGAIN(1) rgain REPLAYGAIN(1)NAME
replaygain - single file Replay Gain editor
SYNOPSIS
replaygain [options] AUDIO_FILE [AUDIO_FILE ...]
replaygain --help
replaygain --version
DESCRIPTION
replaygain applies or displays Replay Gain information for audio files.
OPTIONS --version
Display the version of the software.
-h, --help
Display a short documentation.
-f, --force
Recalculate Replay Gain even if the file already contains gain information.
-d, --dry-run
Don't actually modify any files.
-r REF, --reference-loudness=REF
Set the reference loudness to REF dB (default: 89 dB)
--mp3-format=MP3_FORMAT
Choose the Replay Gain data format for MP3 files. Since there is no commonly accepted standard for Replay Gain in MP3 files, you
need to choose. Possible formats are :
o ql (used by Quod Libet). This is the default value.
o fb2k (read and written by foobar2000, also understood by Quod Libet)
o mp3gain (tags as written by the mp3gain program; this doesn't modify the MP3 audio data as said program does).
--no-album
Don't write any album gain information.
--show Don't calculate anything, simply show Replay Gain information for the specified files. In this mode, all options other than
--mp3-format are ignored.
SEE ALSO collectiongain(1)1.0 2011-11-26 REPLAYGAIN(1)