I need some help. I don't understand what you mean by, "Don't use double quotes to assign command output to variables; use "command substitution" $(...) instead." I've never done that whatever it is but I'd like to try it.
Is that referring to the line:
Should it be:
I'm trying to work out the while loop for the second check.
---------- Post updated at 05:54 PM ---------- Previous update was at 05:51 PM ----------
Last edited by Franklin52; 03-30-2013 at 11:27 AM..
Reason: Code tags
Greetings,
I'm new to scripting and need a little help. I have a NAS server and want to make a script that bans IP if they fail login several times.
The problem is that I dont know how to compare the IP's in the file. If they exist more than 3 times do ....
#!/bin/sh
set -x
X=4
rm... (2 Replies)
consider this as a csv file.
H,0002,0002,20100218,17.25,P,barani
D,1,2,3,4,5,6,7,8,9,10,11
D,1,2,3,4,5,6,7,8,9,10,11
D,1,2,3,4,5,6,7,8,9,10,11
D,1,2,3,4,5,6,7,8,9,10,11
D,1,2,3,4,5,6,7,8,9,10,11
T,5
N
i want to read the csv file and count the number of rows that start with D and... (11 Replies)
HI Unix Gurus,
I have a number of SELECT count(*) statements in an input file and I want to execute it using a shell script but one by one using loop in script....
How can I do this..... (7 Replies)
Hello all.. i am new to shell scripting.. learning the things..i am struck at a place here..
I have divided one table in two two tables for comparision..
X1|Left|10000|10025
X2|Left|1050|1075
X2|Left|3050|3075
X3|Left|9000|9025
Y1|Left|3000|3025
Y1|Left|4500|4525
Y2|Left|7000|7025... (4 Replies)
Here in the input file
23:59:13,devicename,21,server1,700
23:59:13,devicename,22,server2,200
23:59:13,devicename,23,server3,200
23:59:13,devicename,24,server4,200
23:59:13,devicename,25,server5,200
23:59:13,devicename,26,server6,200
23:59:13,devicename,27,server7,200... (6 Replies)
Hi Guys,
I need to write a script to compare the count of two csv files each having 5 columns.
Everyday a csv file is recived.
Now we need to compare the count of todays csv file with yesterday's csv file and if the total count of records is same in todays csv file and yesterday csv file out... (3 Replies)
What I'm trying to accomplish. I receive a Header and Detail file for daily processing. The detail file comes first which holds data, the header is a receipt of the detail file and has the detail files record count. Before processing the detail file I would like to put a wrapper around another... (4 Replies)
Dear All,
I would like to compare two files and return the number of matches found.
Example
File A
Lx2
L1_Mus1
L1Md_T
Lx5
L1M2
L1_Mus3
Lx3_Mus
Lx9
Lx2A
L1Md_A
L1Md_F2
File B
L1_Mus3
L1_Mus3 (3 Replies)
I am trying to compare 2 files and output the results in two files. The lines that are the same output to concordant.txt while the lines that do not match output to discordant.txt. Is there a way to count the lines after specific text (#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT E1) in each... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT SUSE
pfsinimgmagick
pfsinimgmagick(1) General Commands Manual pfsinimgmagick(1)NAME
pfsinimgmagick - Load images or frames using ImageMagick++ library
SYNOPSIS
pfsinimgmagick (<file> [--linear] [--absolute <max_lum>] [--frames <range>] [--skip-missing]) [<file>...]
DESCRIPTION
This command can load images or frames in the multitude of image formats supported by the ImageMagick library. This includes but is not
limited to: BMP, JPG, PNG, GIF, EPS, TIFF, DPX. See the manual page of ImageMagick for the full list of available formats.
pfsinimgmagick reads images or frames from files and writes pfs stream to the Standard Output. The pfs stream is usually piped to another
program for further processing. To detect the format automatically based on the extension, use pfsin command.
The output of pfsinimgmagick is scaled to 0-1 range, unless '--absolute' option is specified. By default, the 'LUMINANCE' tag is set to
'DISPLAY' contents. Using the '--linear' switch you can force the inverse sRGB transformation to provide linear data. In this case the
'LUMINANCE' tag is set to 'RELATIVE' contents. '--absolute' switch can be used to convert pixels to absolute luminance values.
This command handles properly 'alpha' channel (transparency) stored in images.
Each file can contain a %d pattern, which is substituted with frame numbers. The pattern has the same syntax as C printf command. For exam-
ple, you can use %04d to make the frame number four digit with proceedings zeros. You can select the frames using the following options
(the options must be always given after the file name):
--frames <range>
Range is given in mathlab / octave format:
startframe:step:endframe
Frame numbers start with startframe (default 0), are increased by step (default 1) and stop at endframe You can skip one of those
values, for example 1:100 for frames 1,2,...,100 and 0:2: for frame 0,2,4,... up to the last file that exists.
--skip-missing
Skip up to ten frames in a row if corresponding files are missing. Otherwise the program stops reading sequence at the first file
that does not exists. This switch does not apply to the first frame in a sequence. This switch can be useful if there is a rendered
animation where some of the frame has not been generated.
--linear, -l
Converts pixel values to linear luminance (XYZ), assuming the sRGB color space for the input image. The maximum pixel value
(255,255,255) is mapped to Y=1. LUMINANCE tag is set to RELATIVE.
--absolute <max_lum>, -a <max_lum>
--absolute converts pixel values to an absolute linear luminance (XYZ), that is the color space, in which channel Y contains lumi-
nance given in cd/m^2. The sRGB color space is assumed for the input image. The maximum pixel value (255,255,255) is mapped to
Y=<max_lum>. <max_lum> is typically set to 80 [cd/m^2] for a CRT monitor. LUMINANCE tag is set to ABSOLUTE. --absolute process
images almost the same as --relative, but additionally it scales all pixels by <max_lum>.
EXAMPLES
pfsinimgmagick frame%04d.dpx --frames 0:10 | pfsview
Read frames from files frame0000.dpx, frame0001.dpx, ..., frame0010.dpx and show them using pfsview.
BUGS
pfsinimgmagick can not read frames from the Standard Input.
Please report bugs and comments on implementation to the discussion group http://groups.google.com/group/pfstools
SEE ALSO pfsin(1), pfsout(1)ImageMagick(1)pfsinimgmagick(1)