01-06-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i want to sum all nubers in one column. Example:
12.23
11
23.01
3544.01
I'm trying to do this in awk, but it doesn't work properly.
Seems like awk is summing only integers, for example:
12
11
23
3544
It cuts off numbers after dot.
I used this command:
akw /text/ file.txt |nawk... (1 Reply)
Discussion started by: iahveh
1 Replies
2. UNIX for Advanced & Expert Users
Hello, I have a file, and one column has both positive and negative numbers. Does anyone know how I can calculate the total of all the values (i.e, +ve and -ve).
eg:
col1 col2 col3
data 23 data
data 76 data
data -30 data
Thanks
Khoom (1 Reply)
Discussion started by: Khoomfire
1 Replies
3. Shell Programming and Scripting
This is my script. I am pulling the status of some hard where, but the status is in numerical form. The number 4 means Major and the 5 means Critical. In my script I would like to show the alarm type in aplha rather than numeric form. So if instead of seeing a 4 or 5 you would see MAjor or... (11 Replies)
Discussion started by: ja156194
11 Replies
4. Shell Programming and Scripting
Hi All thanks a lot for your previous replies. I need some help here. I am writing a script to test a machine for a thereshold. It is genrating the list of number that have to be added but not displaying the added value.
The script is like this
#!/bin/sh... (1 Reply)
Discussion started by: asirohi
1 Replies
5. Shell Programming and Scripting
Hi all,
i have a command named "vmchange" and i must use it for thousands of data which must be changed.
For example,
vmchange -m N0001
vmchange -m N0002
vmchange -m N0003
...
...
vmchange -m N0100
How can i do that in awk or bash script?
Any help would be greatly appreciated..
... (5 Replies)
Discussion started by: oduth
5 Replies
6. Shell Programming and Scripting
Problem discription:
I have many files which contain the same lines.
for instance, (15 lines) file1 ..last column add by hand arbitrarily.
1.78116800 0.68396600 0.00061900
0.47641600 -0.49794500 -0.00024000
-1.70662800 0.29577100 0.67863600
-1.70647600 0.29654600 ... (9 Replies)
Discussion started by: liuzhencc
9 Replies
7. Shell Programming and Scripting
Given a file test.txt ,I can get a list of numbers in a single column using the command :
cat test.txt | cut -d ' ' -f 8 that gives the output as
52
52
52
60
52
How can I get the sum of all the numbers in that column that is displayed?
i want the output as
sum=268 (4 Replies)
Discussion started by: hitha87
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a file which has some Linux commands in every line like
more 456.dat
more 3232.dat
more 433.dat
I want to add texts like this at the end of every line:
more 456.dat > 1.txt
more 3232.dat > 2.txt
more 433.dat > 3.txt
So, that the result of more goes into 1.txt... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
9. Shell Programming and Scripting
please help!!!!!!
I have a file .txt that has only one column like that:
34.1
35.5
35.6
45.6
...
Now, i want to add a column in the left in which the values of this column increase by 0.4 , for example:
0.0 34.1
0.4 35.5
0.8 35.6
1.2 45.6
How can i do with awk instructions??? ... (2 Replies)
Discussion started by: tienete
2 Replies
10. UNIX for Dummies Questions & Answers
Hello. Trying to add a column of numbers and combine the 1st and 2nd fields as uniq with the new total.
This works to add the numbers but can't figure an easy was to combine the 1st and 2nd column as the list is very long. awk '{s+=$3} END {print s}'
bird dog 300
bird dog 100
cat clown 200... (1 Reply)
Discussion started by: jimmyf
1 Replies
LEARN ABOUT DEBIAN
arista-transcode
ARISTA-TRANSCODE(1) General Commands Manual ARISTA-TRANSCODE(1)
NAME
arista-transcode - multimedia transcoding tool for the GNOME Desktop
SYNOPSIS
arista-transcode [options] infile outfile...
DESCRIPTION
This manual page documents briefly the arista-transcode command.
arista is a multimedia transcoder for the GNOME Desktop which allows user to encode audio and video streams for a wide variety of devices.
arista-transcode is a command line program which allows user to encode audio and video stream for various devices.
Features include automatic discovery of DVD media and V4L devices, ripping from DVD or files, a live quality preview, and included presets
for the most popular devices currently in use.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-').
-h, --help
Show summary of options.
-v, --version
Show version of program.
-i, --info
Show information about available devices.
-S SUBTITLE, --subtitle=SUBTITLE
Subtitle file to render.
-e, --ssa
Render embedded SSA subtitles.
-f FONT, --font=FONT
Font to use when rendering subtitles.
-c, --crop
Amount of pixels to crop before transcoding. Specify as: Top Right Bottom Left, default: None.
-p PRESET, --preset=PRESET
Preset to encode to [default].
-d DEVICE, --device=DEVICE
Device to encode to [computer].
-o FILENAME, --output=FILENAME
Output file name [auto].
-s, --source-info
Show information about input file and exit.
-q, --quiet
Don't show status and time remaining.
-v, --verbose
Show verbose (debug) output.
--install-preset FILENAME
Install a downloaded device preset file.
--reset-presets
Reset presets to factory defaults.
SEE ALSO
arista-gtk(1).
AUTHOR
arista-transcode was written by Daniel G. Taylor <dan@programmer-art.org>.
This manual page was written by Alessio Treglia <alessio@debian.org>, for the Debian project (and may be used by others).
June 23, 2011 ARISTA-TRANSCODE(1)