I have a shell script and want to assign a value to a variable. The value is the line exctrated from a file using the line number. The line number it is not fix, and could change any time.
I have tried sed, awk, head .. See my script
# Get randome line number from the file
#selectedline = `awk... (1 Reply)
Hello,
I am having trouble extracting a specific line from a file when the line number is known. My first attempt involved grep -n 'hi' (the word 'hi will always be there) to get the line number before the line that I actually want (line 4).
Extra Notes:
-I am working in a bash script.
-The... (7 Replies)
If i have a file, how do i create a new file with say line x to y from the file i have. Eg. File1 has 100 line, i want File2 to have line 50-60 from File1 (4 Replies)
hi dudes,
I have a text file in the below format
1 s sanity /u02
2 r script1 /u02
3 s sanity /u02
Please tell me a script to read this file line by line, I wrote the below script , but it is printing only 1st line not printing rest... (7 Replies)
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
In the below perl code I am using tags within each line to extract certain information. The tags that are used are:
STB >0.8 is STRAND BIAS otherwise GOOD
FDP is the second number
GO towards the end of the line is read into an array and the value returned is outputed, in the first line that... (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT DEBIAN
ogmdemux
OGMDEMUX(1) User Commands OGMDEMUX(1)NAME
ogmdemux - Extract streams from OGG/OGM files into separate files
SYNOPSIS
ogmdemux [options] inname
DESCRIPTION
This program extracts all or only some streams from an OGM and writes them to separate files.
inname Use 'inname' as the source.
-o, --output out
Use 'out' as the base for destination file names. '-v1', '-v2', '-a1', '-t1'... will be appended to this name. Default: use
'inname'.
-a, --astream n
Extract specified audio stream. Can be used more than once. Default: extract all streams.
-d, --vstream n
Extract specified video stream. Can be used more than once. Default: extract all streams.
-t, --tstream n
Extract specified text stream. Can be used more than once. Default: extract all streams.
-na, --noaudio
Don't extract any audio streams.
-nv, --novideo
Don't extract any video streams.
-nt, --notext
Don't extract any text streams. Default: extract all streams.
-r, --raw
Extract the raw streams only. Default: extract to useful formats (AVI, WAV, OGG, SRT...).
-v, --verbose
Increase verbosity.
-h, --help
Show this help.
-V, --version
Show version number.
NOTES
What works:
* Extraction of the following formats is fully supported including writing the stream contents to useful container formats:
video -> AVI
Vorbis -> OGG/Vorbis
PCM -> WAV
text -> text files (SRT subtitle format)
* All other audio streams (MP3, AC3) are just copied 1:1 into output files. MP3 and AC3 files should be usable. Others might not.
What not works:
* Headers created by older OggDS (DirectShow) filter versions are not supported (and probably never will be).
AUTHOR
ogmdemux was written by Moritz Bunkus <moritz@bunkus.org>.
SEE ALSO ogmmerge(1), ogmsplit(1), ogminfo(1), ogmcat(1), dvdxchap(1)WWW
The newest version can always be found at <http://www.bunkus.org/videotools/ogmtools/> <http://www.bunkus.org/videotools/ogmtools/>
ogmdemux v1.5 November 2004 OGMDEMUX(1)