03-23-2010
Hi Drewk,
Thanks for the detailed explanation. The tool you referred is very handy. Trying to learn from that.Appreciate your guidelines.Very helpful.
Regards
uma
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have a big text file .
i want to create new file as extract some specific text
from the big file
i am using hp ux
please help (2 Replies)
Discussion started by: reyazan
2 Replies
2. Shell Programming and Scripting
Hi ,
I have file, which has the below content:
line 100
a
b
c
d
line300
a
s
d
f
s
line200
a
s
d
a (3 Replies)
Discussion started by: little_wonder
3 Replies
3. Shell Programming and Scripting
Hi
I want to extract certain text between two line numbers like
23234234324 and
54446655567567
How do I do this with a simple sed or awk command?
Thank you.
---------- Post updated at 06:16 PM ---------- Previous update was at 05:55 PM ----------
found it:
sed -n '#1,#2p'... (1 Reply)
Discussion started by: return_user
1 Replies
4. Shell Programming and Scripting
Does awk have a syntax for a range of numbers or is this the best way?
if ($1 >= 0 && $1 <= 9 ) (7 Replies)
Discussion started by: Arsenalman
7 Replies
5. Shell Programming and Scripting
This is my problem, my file (file A) contains the following information:
Now, I would like to create a file (file B) containing only the lines with 10 or more characters but less than 20 with their corresponding ID:
Then, I need to compare the entries and determine their frequency. Thus, I... (7 Replies)
Discussion started by: Xterra
7 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a file with over 100,000 lines. I would like to be able extract 5000 lines at a time and give it as an input to another program.
sed -n '1,5000p' <myfile> > myOut
Similarly for
5001-10000
10001-15000
....
How can I do this in a loop?
Thanks,
Guss (5 Replies)
Discussion started by: Gussifinknottle
5 Replies
7. Shell Programming and Scripting
Hi All,
I want to extract the lines from file1 by using the index numbers from file2. In example,
cat file1.txt
265 ABC 956 ...
698 DFA 456 ...
456 DDD 145 ...
125 DSG 154 ...
459 CGB 156 ...
490 ASF 456 ...
484 XFH 489 ...
679 hgt 481 ...
111 dfg 986 ...
356 vhn 444 ...... (7 Replies)
Discussion started by: senayasma
7 Replies
8. UNIX for Dummies Questions & Answers
hello!
could u, please, help:
i have a file that includes 6 columns space delimited
1 rs4477212 0 82154 0 T
1 rs6680825 0 91472 0 G
1 rs9326626 0 570178 0 T
1 rs12123356 0 724702 0 C
I need to extract to a separate file lines... (5 Replies)
Discussion started by: kush
5 Replies
9. Shell Programming and Scripting
I have a combination of patterns to search.
file.txt contains below:
H2016-02-10
A74867712
I1556539758
Xjdflk534jfl
W0000055722327732
W0000056029009389
A74867865
I1556536434
W0000055822970840
W0000055722325916
A74868015
I1556541270
C0000055928920421
E
lines starting with A are... (5 Replies)
Discussion started by: chakrapani
5 Replies
10. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT DEBIAN
icecream
ICECREAM(1) icecream ICECREAM(1)
NAME
icecream - download icecast and shoutcast streams, redirecting all fetched content to stdout and/or to disk at the same time
SYNOPSIS
icecream [OPTIONS] URL [URL..]
DESCRIPTION
icecream is a lightweight, non-interactive, stream download utility. It connects to icecast and shoutcast servers or direct stream URLs,
and redirects all fetched content to stdout and/or to media files on your disk.
Listen to the stream piping the output to a stdin-capable media player. Save the stream to a named file or split it into different tracks.
It is possible to redirect the stream and save it to disk at the same time.
icecream is able to parse pls and m3u playlists, and to download mp3 and ogg direct stream URLs. If the stream is anonymous it will be
saved as 'stream-time.mp3', where time is actual timestamp.
OPTIONS
-h, --help
Print a help message describing all options
-q, --quiet
Turn off output
-v, --verbose
Be verbose
-t, --tracks
Split stream into tracks (if possible)
--name=NAME
Save the stream to file specified by NAME. Format codes starting with "%" will be replaced. See the date command for valid format
codes.
--stop=N[units]
Stop downloading the stream after N kb/mb/min/songs
--user-agent=AGENT
Set user-agent header to AGENT
--stdout
Output stream to stdout (implies -q)
--sync Turn syncing on, required for some mpeg players that read from stdin
--debug Turn on debugging outputs
EXAMPLES
Streaming to mpg123
icecream --stdout http://radio.com/playlist.pls | mpg123 -
Split stream into different tracks
icecream -t http://metal.org/radio.pls
Split stream into tracks and play with vlc at the same time
icecream -t --stdout http://streaming.com/playlist.pls | vlc file:/dev/stdin
Prepare a 74 minute CD
icecream -t --stop 74min http://trace.net/playlist.m3u
Use a filename with today's date as output
icecream -q --name 'radio_%Y_%m_%d' --stop 60min http://radio.com/playlist.pls
BUGS
You are welcome to send bug reports about icecream to our mailing list. Feel free to visit http://icecream.sourceforge.net
AUTHOR
Written by Gil Megidish <gil at megidish.net>
1.3 2008-04-28 ICECREAM(1)