hi
i am pretty new to unix .i am ETL guy
I need a unix script to take row count of a file and write it to another file
the problem with wc-l is it include filename also
wc -l abc.dat
will give me like 1000 abc.dat
i just want 1000 to be written
can u just take 2 min to write a simple... (1 Reply)
Hi,
Suppose i have a inputfile in csv format.
How to use awk to count 'the number of nonempty columns in each row' minus one, and add the value as a new column in the end
For cosmetic reason, it's even better to include a descriptive label for the last column in the first row.
for... (2 Replies)
How can you delete a row if a certain column is bigger than a certain number?
I have the following input:
20080709 20081222 95750 1 0 0.02 94.88
20080709 20081222 95750 2 0 0.89 94.88
20080709 20081222 9575 1 0 0 94.88
20080709 20081222 9575 2 0 0 94.88
20080709 20081222 9587.5 1 0 0... (1 Reply)
How can you delete a row if a certain column is bigger than a certain number?
I have the following input:
20080709 20081222 95750 1 0 0.02 94.88
20080709 20081222 95750 2 0 0.89 94.88
20080709 20081222 9575 1 0 0 94.88
20080709 20081222 9575 2 0 0 94.88
20080709 20081222 9587.5 1 0 0... (6 Replies)
Is there anyway to use awk to add a first column to my data that automatically goes from 1 to n , where n is the numbers of my rows?:confused: (4 Replies)
Hello,
I connect to linux using serial cable from windows machine.
I use putty as serial terminal emulator.
Everything works fine except programs which scroll text - man, more, less, vi, etc.. These programs asumme my terminal size is 80cols x 24rows (my putty window size is more than that,... (1 Reply)
Hi experts a have a very large file and I need to add two columns: the first one numbering the incidence of records and the another with the total count
The input file:
21 2341 A
21 2341 A
21 2341 A
21 2341 C
21 2341 C
21 2341 C
21 2341 C
21 4567 A
21 4567 A
21 4567 C
... (6 Replies)
we want the count of number of records to be printed on each row.
For Ex:
if there are 5 records on one unique id , the count "5'' should be printed on each record in other column. Please help for this. I am using unix & Cygwin.
Below are sample records:
KCZ0650473... (2 Replies)
I have a file abc.csv, from which I need column 24(PurchaseOrder_TotalCost) to get the sum_of_amounts with date and row count into another file say output.csv
abc.csv-
UTF-8,,,,,,,,,,,,,,,,,,,,,,,,,
... (6 Replies)
I have a file with 48 rows. I am counting 6 rows and adding 6 to that number and repeating the operation, and then output the value in column 1. For the second column, I would like to get sort of a binary output (1s and 2s) every 3rd row. This is what I have:
awk '{print ++src +... (1 Reply)
Discussion started by: Xterra
1 Replies
LEARN ABOUT DEBIAN
printer-profile
printer-profile(1) General Commands Manual printer-profile(1)NAME
printer-profile - Profile using X-Rite ColorMunki and Argyll CMS
SYNOPSIS
printer-profile [options] manuf model [rgb|cmyk] [patches] [ink-limit]
DESCRIPTION
printer-profile prints a test chart, uses the ColorMunki instrument to scan it in, then computes an ICM profile using the Argyll Color Man-
agement System.
Manuf is "sam". Model is "clp-300" or "clp-315".
Manuf is "hp". Model is "2600" or "cp1215".
Manuf is "km". Model is "2300" or "2530".
"rgb" is the usual setting. "patches" is a multiple 196 per page.
Edit the script for additional models.
OPTIONS -b 1|2 Bits per pixel (1)
-r XRESxYRES Resolution. Default=''. ()
-P rem-print Remote print (64-bit) machine, or none (amd)
-S rem-scan Remote scan (ColorMunki) machine, or none (mac)
-D lvl Debug level
EXAMPLES
Profile the Samsung clp-315:
$ printer-profile sam 315 rgb 196
BUGS
gs 8.64 and before has problems with 32-bit machines and color profile data. Don't use!
You need Argyll_V1.2.0 or later.
FILES
/usr/bin/printer-profile, /usr/share/foo2*/icm/testing.icm
SEE ALSO
firefox http://www.xritephoto.com/html/colormunkisplash.htm
firefox http://www.argyllcms.com/
firefox http://www.argyllcms.com/Argyll_V1.3.5_src.zip
AUTHOR
Rick Richardson <rick.richardson@comcast.net>
http://foo2zjs.rkkda.com/