Hi Scripting gurus,
I need to convert following text snippet into csv. please help
Input
heading1 = data1
heading2 = data2
..
..
heading n = data n
heading 1 = data1
..
..
Output
data1,data2,....,data n (3 Replies)
I've got two large csv text table files with different number of columns each.
I have to compare them based on first two columns and create resulting file
that would in case of matched first two columns include all values from first one and all values (except first two colums) from second one. I... (5 Replies)
Hi
Written some script to convert csv to html but could not add table headers.Below are the errors iam getting
./csv2html | more
+ awk -v border=1 -v width=10 -v bgcolor=black -v fgcolor=white
BEGIN { printf("<table border=\"%d\" bordercolor=\"%s\" width=\"%d\"... (2 Replies)
hi...... thanks for allowing me to start a discussion
i am collecting usb usage details of all users and convert it into csv files so that i can export it into some database..
the input text file is as follows:-
USB History Dump
by nabiy (c)2008
(1) --- Kingston DataTraveler 130 USB... (2 Replies)
Hi,
I have an xml file and I want to convert it with awk in to a csv file
Test.xml
<Worksheet ss:Name="Map1">
<Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="2" x:FullColumns="1"
x:FullRows="1" ss:DefaultColumnWidth="60">
<Row>
<Cell><Data... (6 Replies)
Hi guys,
I usualy am able to google awk stuff but I can't find it so far and there are so many awking gurus here that I will give it a shot.
I want to print $1;$3;"$5 up to the $NF". In other words, I can have 1000 colums, but need to have $5 up to the end.
I started with the idea of... (2 Replies)
Need help to convert the following data
Account name: admin
Role: admin
Description: Administrator
Enabled: Yes
to
Account Name Role Description Enabled
admin admin Administrator Yes
Perl or AWK?
Thanks
San (9 Replies)
Hi ,
I have a simple text file with contents as below:
12345678900 971,76 4234560890
22345678900 5971,72 5234560990
32345678900 71,12 6234560190
the new csv-file should be like:
Column1;Column2;Column3;Column4;Column5
123456;78900;971,76;423456;0890... (9 Replies)
Hello,
I am working on a part of code where I need a awk or shell script to convert the given XML file to CSV or TXT file.
There are multiple xml files and of different structure, so a single script is required for converting data.
I did find a lot of solutions in the forum but... (16 Replies)
HI,
I need to filter my data based on 3 different columns.
Two of the columns are unique so it worked if u use something like
grep 'PASS.*HIGH|HIGH.*PASS' file.tsv
However the other column is not unique ..
So basically I want to extract out lines that match only match these 3... (4 Replies)
Discussion started by: janshamsani
4 Replies
LEARN ABOUT DEBIAN
powertop
POWERTOP(8) powertop manual POWERTOP(8)NAME
powertop - a power consumption and power management diagnosis tool.
SYNOPSIS
powertop [ options ]
DESCRIPTION
powertop is a program that helps to diagnose various issues with power consumption and power management. It also has an interactive mode
allowing one to experiment with various power management settings. When invoking powertop without arguments powertop starts in interactive
mode.
OPTIONS
--csv[=FILENAME]
generate a CSV report. If a filename is not specified then the default name "powertop.csv" is used. The CSV report can be used for
reporting and data analysis.
--calibrate
runs powertop in calibration mode. When running on battery, powertop can track power consumption as well as system activity. When
there are enough measurements, powertop can start to report power estimates. One can get more accurate estimates by using this
option to enable a calibration cycle. This will cycle through various display levesl and USB device activities and workloads.
--debug
run in "debug" mode.
--extech=devnode
use the Extech Power Analyzer for measurements. This allows one to specify the serial device node of the serial to USB adaptor con-
necting to the Extech Power Analyzer, for example /dev/ttyUSB0.
--help
show the help message.
--html[=FILENAME]
generate an HTML report. If a filename is not specified then the default name "powertop.html" is used. The HTML report can be sent
to others to help diagnose power issues.
--iteration[=iterations]
number of times to run each test.
--time[=seconds]
generate a report for a specified number of seconds.
--version
print version information and exit.
BUGS
Send bug reports to <powertop@lists.01.org>
SEE ALSO
The program is more fully described at https://01.org/powertop
AUTHOR
powertop was written by Arjan van de Ven <arjan@linux.intel.com>, and is currently maintained by Chris E Ferron <chris.e.fer-
ron@linux.intel.com>.
Linux June 1, 2012 POWERTOP(8)