03-19-2017
Try a semicolon after the p command.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to search a file for a string and then if the string is found I need the line that the string is on - but also the previous two lines from the file (that the pattern will not be found in)
This is on solaris
Can you help? (2 Replies)
Discussion started by: frustrated1
2 Replies
2. Shell Programming and Scripting
hi, i have a large text file that I just want to extract the important
information from. It will be a random number of lines but between two specific
line numbers/markers.
I was thinking I could get the line number for the first marker:
Tablespace Percent Total Free
Then get the line... (11 Replies)
Discussion started by: Da_Duck
11 Replies
3. Shell Programming and Scripting
Gents,
from these sample lines:
ZUCR.MI ZUCCHI SPA RISP NC 2,5000 6 ott 0,0000
ZV.MI ZIGNAGO VETRO 3,6475 16:36 Up 0,0075
is it possible to get this:
ZUCR.MI 2,5000
ZV.MI 3,6475
i.e. the first field, a separator and the first decimal number?
(in Europe we... (9 Replies)
Discussion started by: vampirodolce
9 Replies
4. Shell Programming and Scripting
Hi,
the text line looks like this:
"test1" " " "test2" "test3" "test4" "10" "test 10 12" "00:05:58" "filename.bin" "3.3MB" "/dir/name" "18459"
what's the best way to select any of it? So I can for example get only the time or size and so on.
I was trying awk -F""" '{print $N}' but... (3 Replies)
Discussion started by: TehOne
3 Replies
5. Shell Programming and Scripting
The text line has the following formats:
what.ever.bla.bla.C01G06.BLA.BLA2
what.ever.bla.bla.C11G33.BLA.BLA2
what.ever.bla.bla.01x03.BLA.BLA2
what.ever.bla.bla.03x05.BLA.BLA2
what.ever.bla.bla.Part01.BLA.BLA2
and other similar ones, I need a way to select the "what.ever.bla.bla" part out... (4 Replies)
Discussion started by: TehOne
4 Replies
6. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
5 Replies
7. Shell Programming and Scripting
Hello all,
I have one input file like this:
List 1
mail a
mail b
mail c
List 2
mail d
mail e
mail f
mail g
List 3
mail h
mail i
And I want something like that by using linux:
List 1,mail a,mail b,mail c (4 Replies)
Discussion started by: benitto
4 Replies
8. Shell Programming and Scripting
I need to send email to receipient in each block of data in a file which has the sender address under TO and just send that block of data where it ends as COMPANY.
I tried to work this out by getting line numbers of the string HELLO but unable to grab the next block of data to send the next... (5 Replies)
Discussion started by: loggedout
5 Replies
9. Shell Programming and Scripting
i have a file which contains data seperated by comma. i want to replace text after 3rd occurrence of a comma.
the input file looks like this
abcdef,11/02/2015 11:55:47,1001,1234567812345678,12364,,abc
abcdefg,11/02/2015 11:55:47,01,1234567812345678,123,,abc
abcdefhih,11/02/2015... (4 Replies)
Discussion started by: gpk_newbie
4 Replies
10. Shell Programming and Scripting
im using the following code to grab data, but after the data in the range im specifying has been grabbed, i want to count how many instances of a particular pattern is found?
awk 'BEGIN{count=0} /parmlib.*RSP/,/seqfiles.*SSD/ {print; count++ } /103 error in ata file/ END { print count }'... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT DEBIAN
oggcat
OGGCAT(1) User Manuals OGGCAT(1)
NAME
oggCat - concatenates two ogg video files (.ogv, .ogg or oga)
SYNOPSIS
oggCat [options] outfile.ogv file1.ogv file2.ogv [ file3.ogv [...] ]
DESCRIPTION
oggCat concatenates two or more ogg files.
The parameters of the resulting ogg file is defined by the first file in the concatenation list. The parameters could be changed by some
options, explained below.
All subsequent files that does not match these video file parameters are automatically transcoded.
A concatenation will fail in case that there are not enought streams available. This could happen e.g. if the first file consists of one
audio and one video stream and the second file only carries a video stream.
If there is more than one video or audio stream within the file, the first stream is used.
OPTIONS
-s Sets the size of the video frame. The size is given as <width>x<height>. At default, the video frame size is the size of the first
video stream.
Example: -s 320x240
-d Sets the datarate in byte per seconds for the video encoder (theora). This meant to be a upper threshold. So the file may be smaller
than assumed. If not set, the datarate of the first file is used.
Example: -d 1024000
-D Sets the datarate in byte per seconds for the audio encoder (vorbis). If not set, the datarate of the first file is used.
Example: -D 64000
-f Sets the frame rate of the video with numinator and demoninator and is the pictures per second. If only one number is given, the
denominator is set to 1. If not set, the framerate of the first file is used.
Example: -f 25:2
-F Sets the sample frequency (sample rate) of the audio data in Hertz. If the sample frequency does not match the one with the original
file, resamling is invoked.
Example: -F 32000
-c Adds comments to the video (theora) stream. Comments are given by a pair of type and value in the form 'type=value'. More than one
comment can be concatenated with a semicolon. It is recommended to use apostrophes as the command line may use the semicolon as a
seperator.
Example: -c 'AUTHOR=yorn;DATE=03.07.09'
-C Adds comments to the audio (vorbis) stream. Comments are given by a pair of type and value in the form 'type=value'. More than one
comment can be concatenated with a semicolon. It is recommended to use apostrophes as the command line may use the semicolon as a
seperator.
Example: -C 'AUTHOR=yorn;DATE=03.07.09'
-q Specifies the video quality for the newly created stream. Valid values can be chosen between 0 and 63 (best).
Example: -q 63
-rv Force to reencode the video stream. This is sometimes neccessary, if the video stream match in video parameters, but not in the the-
ora version. In that case, reencoding the video stream helps creating good results.
-x Force to overwrite the output file, even if it exists. This is mainly helpful if the oggCat is server controlled.
EXAMPLES
oggCat concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
or
oggCat -o concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
This command creates a cancatenated file concatFile.ogv that consists of the three files myfile1.ogv myfile2.ogv myfile3.ogv
oggCat -s320x240 -q63 concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
This command connects the three files myfile[1-3].ogv to file concatFile.ogv with the size of 320x240 and best quality.
AUTHOR
Joern Seger <yorn at gmx dot net>
SEE ALSO
oggCut(1), oggJoin(1), oggSplit(1), oggTranscode(1), oggSlideshow(1), oggThumb(1), oggSilence(1)
Linux JAN 2010 OGGCAT(1)