08-31-2010
read a string from its end to its start and stop when you find a specific character
How can I do this? Actually I have a file which contains a path
e.g.
/home/john/Music/hello.mp3
and I want to take only the filename (hello.mp3) So, I need to read the file from its end to its start till the character "/"
Is this possible?
Thanks, I am sure you'll not disappoint me here!
Oh, yes, you are the best!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a string like "9633C01302_2". I need to extract the number(02) after "13" and before "_" and the number coming after "13" and before "_" is not constant, it keeps on changing...
Can some one plz help me wth the command..
i tried this echo "9633C01302_2" | cut -d'_' -f1 ..But... (2 Replies)
Discussion started by: grajesh_955
2 Replies
2. Shell Programming and Scripting
Not sure if the title of this thread makes sense, but hopefully my explanation will.
I'm using awk to print some stats from an apache accesslog. I would like to specify the regexp condition where only the two root pages of "index.html" and "/" are counted in my results. What I can't figure out... (3 Replies)
Discussion started by: picassolsus
3 Replies
3. UNIX for Dummies Questions & Answers
Hello People,
I have the following contents in an XML file
...........
...........
..........
...........
<Details = "Sample Details">
<Name>Bob</Name>
<Age>34</Age>
<Address>CA</Address>
<ContactNumber>1234</ContactNumber>
</Details>
...........
.............
.............. (4 Replies)
Discussion started by: sushant172
4 Replies
4. Shell Programming and Scripting
Hi ,
I have below file with 13 columns. I need 2-13 columns seperated by comma and I want to append each row with a string "INSERT INTO xxx" in the begining as 1st column and then a variable "$node" and then $2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13 and at the end another string " ; COMMIT;"
... (4 Replies)
Discussion started by: Vaddadi
4 Replies
5. UNIX for Dummies Questions & Answers
Dear Members,
Depending on the current date i should find out the start and end dates of the quarter.
ex: Today date is 14-Nov-2011 then Quarter start date should be Oct 1 2011 and Quarter End date should be Dec 31 2011.
How can i do this?
Thanks
Sandeep (1 Reply)
Discussion started by: sandeep_1105
1 Replies
6. Shell Programming and Scripting
I am trying to extract a string from a line of text. Currently I am using
grep -o 'startofstring(.........'
The string is not always the same size.
The string I'm trying to extract starts with 'test(' ends with ')'.
ex "blah,blah,blah,test(stringoftext),blah blah"
How do I... (4 Replies)
Discussion started by: jeepguy
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
1 Replies
8. Shell Programming and Scripting
I'm trying to stop reading a file until the end of the file is reached or a defined delimiter line is reached. Some how I need to test the fail state of the last 2 commands, not just the last command.
echo -e "hello\ngoodbye\n####\ntesting" | while read line; ]; do echo "$line"; done
hello... (4 Replies)
Discussion started by: Michael Stora
4 Replies
9. Shell Programming and Scripting
I have a file as follows:
0
1056
85540
414329
774485
1208487
1657519
2102753
2561259
3037737
3458144
3993019
4417959
4809964
5261890
5798778
6254146
I want to find all lines between a specified start and end tag. (6 Replies)
Discussion started by: jamie_123
6 Replies
10. Shell Programming and Scripting
Hi,
I have a scenario where I want to display the output based on the pattern search between the start and end of a block in a file, we can have multiple start and end blocks in a file.
Example give below, we need to search between the start block abc and end block def in a file, after that... (5 Replies)
Discussion started by: G.K.K
5 Replies
LEARN ABOUT DEBIAN
normalize-mp3
NORMALIZE-MP3(1) General Commands Manual NORMALIZE-MP3(1)
NAME
normalize-mp3 - adjust levels of mp3 or ogg files by running normalize-audio(1), then re-encoding
SYNOPSIS
normalize-mp3 [OPTION]... [FILE]...
normalize-ogg [OPTION]... [FILE]...
DESCRIPTION
Normalize volume of mp3 or ogg files by decoding, running normalize, and re-encoding. This requires as much extra disk space as the
largest mp3 or ogg file, decoded. Note that for batch and mix mode, all files must be decoded, so there must be enough disk space for the
decoded copies of all specified mp3 and ogg files.
--ogg Convert files to OGG, regardless of original format
--mp3 Convert files to MP3, regardless of original format
--bitrate BR
Set bitrate of re-encoded file (default 128)
--tmpdir TMP
Put temporary WAV files in temp directory TMP
--notags
Do not copy ID3 or OGG tags to the output file
The following four options may be used to set the encoder and decoder commands for mp3 and ogg vorbis. %m is expanded to the name of the
mp3 or vorbis file, %w expands to the name of the temporary WAV file, and %b expands to the bitrate, as specified by the --bitrate option.
Run normalize-mp3 with no arguments to see the default values.
--mp3encode=X
mp3 encoder
--mp3decode=X
mp3 decoder
--oggencode=X
ogg vorbis encoder
--oggdecode=X
ogg vorbis decoder
-h Display this help and exit.
-V Display version information and exit.
These arguments are passed as arguments to normalize-audio.
Run "normalize-audio --help" for more info.
-a AMP
-g ADJ
-n
-T THR
-b
-m
-v
-q
REPORTING BUGS
Report bugs to <chrisvaill@gmail.com>.
SEE ALSO
The normalize-audio(1) Man page
NOTES
This page was provided by Eduardo Macan <macan@debian.org>
September 2001 NORMALIZE-MP3(1)