All,
I have a task to search through several hundred files and extract duplicate detail records and keep them grouped with their header record. If no duplicate detail record exists, don't pull the header. For example, an input file could look like this:
input.txt
HA
D1
D2
D2
D3
D4
D4... (17 Replies)
Hello,
after 9 months of archiving 1000 files,
now, i need to change the order of fields in the header record.
some very large, space padded files.
HEADERCAS05212008D0210DOMEST01(spacepadded to record length 210)
must now be
05212008HEADERCASD0210DOMEST01(spacepadded to record length 210)
... (1 Reply)
Guys....
Got a scenario in which I need to skip parsing the header record while I do an awk.
Does awk has the flexibility to accomplish this?.
If so, how do we do this?.
Thanks !!!
-Anduzzi :) (2 Replies)
A header record is to be inserted in the begining of a flat file without using extra file or new file. It should be inserted into same file. Advace thanks for all help... (7 Replies)
Hello Everyone
In my shell script, I am retrieving the cluster ID and node number of an LPAR using the following command -
lsclcfg -l
This command's output looks as follows -
CLUSTER_NAME CLUSTER_ID NODE_NR
sch1h004 6104567 3
I want to store only the... (3 Replies)
All,
I currently have a requirement to fetch a Date value from a table. And then insert a Header record into a file along with that date value.
ex:
echo "HDR"" "`date +%Y%j` `date +%Y%m%d`
In the above example I used julian date and standard date using Current Date. But the requirement... (0 Replies)
Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works:
UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` );
So now I want this... (5 Replies)
Hi,
I have a backup report that unfortunately has some kind of hanging indent thing where the first line contains one column more than the others
I managed to get the output that I wanted using awk, but just wanting to know if there is short way of doing it using the same awk
Below is what... (2 Replies)
Hello.
A find command return a list of file.
For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines )
by the following content (exactly) :
§2019_08_23§ #
# ... (8 Replies)
Discussion started by: jcdole
8 Replies
LEARN ABOUT MINIX
phisto
PHISTO(1) General Commands Manual PHISTO(1)NAME
phisto - compute a luminance histogram from one or more RADIANCE pictures
SYNOPSIS
phisto picture ..
DESCRIPTION
Phisto is a script that calls pfilt(1), rcalc(1) and histo(1) to compute a histogram of log luminance values for foveal samples in the
given picture files. A foveal sample covers approximately 1 degree, though this script does not use this exact area. The minimum and max-
imum values are determined, and 100 histogram bins are uniformly divided between these extrema. Foveal samples less than 1e-7 cande-
las/sq.meter are silently ignored. If no picture is named on the command line, the standard input is read.
The primary function of this script is to precompute histograms for the pcond(1) program, which may then be used to compute multiple, iden-
tical exposures. This is especially useful for animations and image comparisons.
EXAMPLE
To compute two identical tone mappings for image1.hdr and image2.hdr:
phisto image1.hdr image2.hdr > both.histo
pcond -I -h image1.hdr < both.histo > image1m.hdr
pcond -I -h image2.hdr < both.histo > image2m.hdr
AUTHOR
Greg Ward Larson
SEE ALSO histo(1), pcond(1), pfilt(1), pvalue(1), rcalc(1), total(1)RADIANCE 3/12/98 PHISTO(1)