08-31-2007
cut -f2 -d: inputfile |sed s/[^0-9]//g
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all, i have the following problem using awk in a script
i want to read the values from a column with real numbers and calculate the mean.the problem is that when i use a statement such as this
num = $4
i cant find a way to convert the variable from string to floating point to perform... (7 Replies)
Discussion started by: kanagias
7 Replies
2. Shell Programming and Scripting
Hi All,
I am getting the output for the following command when i run it on the unix console.
---------------------------
grep `whoami` /etc/passwd | awk '{print ($1);}' | cut -d ":" -f3
----------------------------
But i made it into a script and tried to print the variable, its... (5 Replies)
Discussion started by: meheretoknow
5 Replies
3. Shell Programming and Scripting
Hi all,
Please some help over here. I have a Sales.txt file containing info in blocks for
every sold product in the pattern showed below (only for 2 products).
NEW BLOCK
SALE DATA
PRODUCT SERIAL
79833269999 146701011945004
.Some other data
.Some... (17 Replies)
Discussion started by: cgkmal
17 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a question regarding the awk command. Here is the line I need to grep:
1 F= -.13250138E+03 E0= -.13249556E+03 d E =-.174650E-01 mag= 35.2157
Instead of displaying the number in red I would like to store it as a variable such as X. Is there a way to do this? Thanks for any... (3 Replies)
Discussion started by: modey3
3 Replies
5. UNIX for Advanced & Expert Users
I have a text wich looks like this:
clid=2 cid=6 client_database_id=35 client_nickname=Peter client_type=0|clid=3 cid=22 client_database_id=57 client_nickname=Paul client_type=0|clid=5 cid=22 client_database_id=7 client_nickname=Mary client_type=0|clid=6 cid=22 client_database_id=6... (3 Replies)
Discussion started by: Pioneer1976
3 Replies
6. Shell Programming and Scripting
Hi,
I am trying to perform a simple soustraction between two floating numbers and cannot get it done for some reason due to the use of the sub command.
The following is the straight-forward result of the soustraction:
$ echo | gawk '{a=968;b=967.99;c=a-b;print c}' ... (2 Replies)
Discussion started by: Indalecio
2 Replies
7. Shell Programming and Scripting
Hello All,
I need to extract lines from a file that contains ALPHANUMERIC and the length of Alphanumeric is set to 16. I have pasted the sample of the lines from the text file that I have created.
My problem is that sometimes 16 appears in other part of the line. I'm only interested to... (14 Replies)
Discussion started by: mnassiri
14 Replies
8. Shell Programming and Scripting
I'd like to copy strings from a log file and put them into a CSV.
The strings could be on different line numbers, depending on size of log.
Example Log File:
File = foo.bat
Date = 11/11/11
User = Foo Bar
Size = 1024
...
CSV should look like:
"foo.bat","11/11/11","Foo Bar","1024" (7 Replies)
Discussion started by: chipperuga
7 Replies
9. Shell Programming and Scripting
Hi,
I am new to this world..
Using expect i loging to router and checking ping response to my links.
I need to genarate report using this output and that report contains only three file link name, packet loss, latency.
my output of script is like below:
-bash-3.00$ monmw/mwbkp... (2 Replies)
Discussion started by: jkmistry
2 Replies
10. Shell Programming and Scripting
Hi all, I have a query that runs that outputs data in the following format -
01/09/12 11:43:40,ADMIN,4,77,Application Group Load: Name(TESTED) LoadId(5137-1-0-1XX-15343-15343) File(/dir/dir/File.T03.CI2.RYR.2012009.11433350806.ARD) InputSize(5344) OutputSize(1359) Rows(2) Time(1.9960)... (8 Replies)
Discussion started by: jeffs42885
8 Replies
LEARN ABOUT DEBIAN
oggcut
OGGCUT(1) User Manuals OGGCUT(1)
NAME
oggCut - extracts parts of an ogg file (.ogv, .ogg and .oga)
SYNOPSIS
oggCut [options] inputfile outputfile
DESCRIPTION
oggCut creates a new ogg file named outputfile as a subpart of the original file named inputfile
oggCut is able to cut video (theora) only files, audio (vorbis) only files or files with both video and audio streams.
The start and end time for the cut area must be given in milliseconds with the options -s and -e.
As a video stream consists of I-frames (which are full pictures) and P-frames (which are delta pictures to the leading I-frame) the oggCut
algorithm searches for the first I-frame. If a video file would start with a p-frame, the player is not able to interpret this picture, as
the leading I-frame (on where it is based) is not available. oggCut starts the I-frame search at the start time given by the -s option. So
expect a shorter video time than the calculated seconds for the new file.
oggCut does not do any reencoding, therefore the output quality is completely the same as from the input file.
For those involved into the ogg container format: The file is cut on packet basis, not on page basis.
There is another tool called oggCut out in the internet with a different synopis. This one has not been written by the author of this tool
you are actually using.
OPTIONS
-s Cut start position in ms. If the input file is a video file, the cut area starts with the next keyframe found. Default: 0
Example: -s 5000
-l Length of the cut area in ms. If -e is also given, the length is ignored.
Example: -l 10000
-e Cut end position in ms. If -l is also used, the end position is prefered. If the end position is set to -1, the end of the stream is
assumed.
Default: -1
Example: -e 20000
EXAMPLE
oggCut -s 1000 -e 21000 myVideo.ogv myOutput.ogv
Creates a new video called myOutput.ogv from the video myVideo.ogv starting after 1 second ending after 21 seconds
AUTHOR
Joern Seger <yorn at gmx dot net>
SEE ALSO
oggCat(1), oggJoin(1), oggSplit(1), oggTranscode(1), oggSlideshow(1), oggThumb(1), oggSilence(1)
Linux JAN 2010 OGGCUT(1)