03-07-2005
cat -b filename
cat -n filename
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Maybe this question is out there, but I searched and didnt see it.
To print my files I use
more filename | lpr -Pprinter
I would like to print my scripts with line numbers.
How do I do this? (2 Replies)
Discussion started by: MizzGail
2 Replies
2. UNIX for Advanced & Expert Users
Hi i would like to add line numbers to end of each line in a file.
I am able to do it in the front of each line using sed, but not able to add at the end of the file.
Can anyone suggest
The following code adds line number to start of each line
sed = filename | sed 'N;s/\n/\t/'
how can i... (5 Replies)
Discussion started by: rudoraj
5 Replies
3. Shell Programming and Scripting
Hi all experts,
I am getting error in my shell scripts and i want to find out which lines is in errors. How i can display the line numbers . Is it NU command? Please give me some suggestions. (4 Replies)
Discussion started by: ma466
4 Replies
4. Shell Programming and Scripting
Hi all
How to add line numbers in text file..
ex
abcd
cdef
result
1. abcd
2. cdef
thx in advance (4 Replies)
Discussion started by: suryanarayana
4 Replies
5. Shell Programming and Scripting
Hi All,
How to get line numbers when we more on a file in LINUX
thanks
firestar (1 Reply)
Discussion started by: firestar
1 Replies
6. Shell Programming and Scripting
hi there ,
i m new to unix , i d like to ask how can a get only even numbered lines matches with the word i search from txt file
for example :
3461:1.D. The copyright laws of the place where you are located also govern
3471:1.E. Unless you have removed all references to Project... (17 Replies)
Discussion started by: brhn
17 Replies
7. UNIX for Dummies Questions & Answers
I know if i use grep -n that the output will have the lines numbered but is there a way to grep the actually line number.
so like this
grep -n "one" /usr/dict/numbers
1:one
21:twenty-one
31:thirty-one
41:forty-one
51:fifty-one
61:sixty-one
71:seventy-one
81:eighty-one
91:ninety-one
... (1 Reply)
Discussion started by: alindner
1 Replies
8. Shell Programming and Scripting
Hi! I'm trying to assign line numbers to each line of the file
for example consider the following..
The contents of the input file are
hello how are you?
I'm fine.
How about you?
I'm trying to get the following output..
1 hello how are you?
2 I'm fine.
3 How about you? ... (8 Replies)
Discussion started by: abk07
8 Replies
9. Shell Programming and Scripting
Hi,
I need to number the lines in my text file. I know how to do this with standard numbering (1,2,3,4, etc) but I need to count in multiples of 5, beginning 0,5,10,15...
example existing file:
abcd
efg
hijklm
nopqrs
desired output
0 abcd
5 efg
10 hijklm
15 ... (11 Replies)
Discussion started by: livbaddeley
11 Replies
10. Shell Programming and Scripting
data.now:
blah1,dah,blaha,sweet,games.log,5297484456,nagios-toin,529748456,on__host=93 SERVICE__ALERT_=51 Warning___The__results__of__service=16 Warning___on__host=92 Auto_save__of__retention__data__completed=1 Warning___Return=68 PASSIVE__SERVICE__CHECK_=53 ,1026--1313,1... (12 Replies)
Discussion started by: SkySmart
12 Replies
LEARN ABOUT DEBIAN
oggz-merge
oggz-merge(1) General Commands Manual oggz-merge(1)
NAME
oggz-merge -- Merge Ogg files together, interleaving pages in order of presentation time.
SYNOPSIS
oggz-merge [-o filename | --output filename ] filename ...
oggz-merge [-h | --help ] [-v | --version ]
Description
oggz-merge merges Ogg files together, interleaving pages in order of presentation time. It correctly interprets the granulepos timestamps
of Ogg CELT, CMML, Dirac, FLAC, Kate, PCM, Speex, Theora and Vorbis bitstreams. Run oggz-known-codecs(1) for a full list of codecs known
by the installed version of oggz.
For example, if you have an Ogg Theora video file, and its soundtrack stored separately as an Ogg Speex audio file, and you can use oggz-
merge to create a single Ogg file containing the video and audio, interleaved together in parallel.
Similarly, using oggz-merge on a collection of Ogg Vorbis audio files will create a big Ogg file with all the songs in parallel, ie. inter-
leaved for simultaneous playback. Such a file is proper Ogg, but not "Ogg Vorbis I" -- the Ogg Vorbis I specification defines an Ogg Vorbis
file as an Ogg file containing only one Vorbis track at a time (ie. no parallel multiplexing). Many music players (which use libvorbisfile)
aren't designed to play multitrack Ogg files. In general however, video players, and anything built on a multimedia framework (like
GStreamer, DirectShow etc.) will probably be able to handle such files.
If you want to create a file containing some Ogg files sequenced one after another, then you should simply concatenate them together using
cat. In Ogg this is called "chaining". If you cat Ogg Vorbis I audio files together, then the result will also be a compliant Ogg Vorbis
file.
Options
oggz-merge accepts the following options:
Miscellaneous options
-o filename, --output filename
Write output to the specified filename instead of printing it to standard output.
-h, --help
Display usage information and exit.
-v, --version
Output version information and exit.
EXAMPLES
Merge pages of audio.oga and video.ogv:
oggz merge -o output.ogv audio.oga video.ogv
AUTHOR
Conrad Parker September 21, 2004;
COPYRIGHT
Copyright (C) 2004 CSIRO Australia
SEE ALSO
cat(1), oggz-rip(1), oggz-dump(1), oggz-diff(1), hogg(1)
oggz-merge(1)