06-07-2009
thank you all for your ideas and replies..
i tried the sed one
sed 's|\(.*\)\(
http://.*\)|\1\\2\|' test.txt
sed: -e expression #1, char 29: unterminated `s' command
is my syntax wrong?
Last edited by mscice; 06-07-2009 at 07:46 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I add text to the beginning of each line in a text file in a script right after the file is created from another text file. (4 Replies)
Discussion started by: cubs0729
4 Replies
2. Shell Programming and Scripting
Hi,
I have a huge file & I want to add a specific text in column. But I want to add this text from a specific line number to a specific line number & another text in to another range of line numbers.
To be more specific: lets say my file has 1000 lines & 4 Columns. I want to add text "Hello"... (2 Replies)
Discussion started by: Ezy
2 Replies
3. Shell Programming and Scripting
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Discussion started by: hertingm
4 Replies
4. Shell Programming and Scripting
Hi All,
I am tring to insert a newline with "/" in a text file whenever there is the text "end;"
right now I have inside file:
.
.
end;
I want to have:
.
.
end;
/
I tried doing the following within the file
:g/^end;/s//end; \/ / (4 Replies)
Discussion started by: jxh461
4 Replies
5. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
6. Shell Programming and Scripting
HI All, I need to search for a particular pattern input by the user in order to delete the line. My username.txt has
username@email.com:John:149.0.3.4:1
username1@email.com:Harry:149.0.3.4:1
username1@email.net:Alex:149.0.3.4:1
username1@email.edu:Nemo:149.0.3.4:1
The program i written
... (3 Replies)
Discussion started by: ichar
3 Replies
7. UNIX for Dummies Questions & Answers
I have a space delimited text file with two columns. I would like to add NA to the first column of the text file.
Input:
19625 10.4791768259
19700 10.8146489183
19701 10.9084026759
19702 10.9861346978
19703 10.9304364984
Output:
NA19625 10.4791768259
NA19700 10.8146489183... (1 Reply)
Discussion started by: evelibertine
1 Replies
8. Shell Programming and Scripting
Hi,
I want to add a text to the end of the specific line in a file. Now my file looks like this:
999
111
222
333
111
444
I want to add the string " 555" to the end of the first line contaning 111. Moreover, I want to insert a newline after this line containg the "000" string. The... (8 Replies)
Discussion started by: wenclu
8 Replies
9. Shell Programming and Scripting
Hi,
I am doing something like below:
cat file1>file3and
cat file2>>file3
I wanted to check if there is a way to write a custom message(hardcoded message)something like below at the beginning of each line then PIPE delimitiation and then followed by remaining record.
cat file1... (7 Replies)
Discussion started by: Saanvi1
7 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
My requirement is to add a specific line in a file after a certain line that contains 'setenv'
the existing code is like
setenv SEQFILES "/ConvWrk/inteng03/alltars/bnymais1"
LIBDEF scope='JOB' type='PGM' dataset='SUNAR.PJ90000P.JOBLIB'... (5 Replies)
Discussion started by: gotamp
5 Replies
LEARN ABOUT DEBIAN
qmp3join
qmp3join(1) quelcom man pages qmp3join(1)
NAME
qmp3join - join mp3 files
SYNOPSIS
qmp3join [option]... file1 file2...
DESCRIPTION
qmp3join reads a list of mp3 files and joins them in one mp3 file in the specified order. some conditions must be met for the parameters of
each of the files (see NOTES section).
OPTIONS
-f, --force
force join bypassing bit rate checks. by default, to join two files they must be both vbr (have variable bit rate) or have the same
bit rate. using this option you can skip this check.
-h, --help
show a brief help and exit.
-o <outfile>, --output=<outfile>
outfile is the name of the file where all the frames will be copied. if this option is not used, the frames from the second to the
last file of the list will be appended to file1.
-v, --verbose
show which operations are done.
-V, --version
show version and exit.
NOTES
(all) the following parameters are required to be common for two mp3 files to be joined: [fill this!!!]. also, about the bit rate parame-
ter, both mp3 must have the same value or (both) must have a variable bit rate. this restriction would be by-passable with the --force
flag.
before joining, all the streams are tested for validity. this is a time consuming operation.
in any case, qmp3join can be viewed like a better but restrictive cat for mp3 files, due to the mp3 file format characteristics.
BUGS
tests have been done only with mpeg version 1 layer iii streams, though it may (or not) work with other versions/layers.
AUTHOR
dmanye@etse.urv.es
http://www.etse.urv.es/~dmanye/quelcom/quelcom.html
SEE ALSO
qmp3info(1), qmp3cut(1), qmp3check(1), qmp3report(1)
qwavinfo(1), qwavjoin(1), qwavcut(1), qwavsilence(1), qwavfade(1), qwavheaderdump(1)
quelcom 0.4.0 february 2001 qmp3join(1)