A normal for-loop? I don't see why you've taken this approach at all.
I'm trying to work on an expanded version of this:
Code:
for Y in 19n 18n 17n ... 17s 18s 19s
do
ARGS=""
for X in 19w 18w 17w ... 17e 18e 19e
do
ARGS="$ARGS +append $Y$X.png"
done
convert $ARGS $Y.png
done
...but running into memory limitations. I may have to shrink all the images before I begin. Which makes sense since I'd have to shrink them severely to view the entire image at once anyway.
hello,
I use AIX with ISM PILOT, I want to match something with a varible like this :
$variable = 10 #this variable is the number of the job
"$variable STARTED" # the pattern
how can use this variable to match it with the word STARTED
Tanks (0 Replies)
Hi!
I wanted to use a while loop, like the one below, for checking words extracted by awk to terminate when a specific word appears. Unfortunately whenever I put my code inside the loop I get an error "Expression recursion level exceeded". What does it mean? What recursion? I don't have any... (4 Replies)
I hope this is not a duplicate thread, but i didn't find anything similar...
I had this script:
filename1=/swkgr/bin/risk/GF2KGR/arch/GF2KGR_M_
filename2=/swkgr/bin/risk/GF2KGR/arch/GF2KGR_D_
day='date +%m%d'
echo $filename1$day
echo $filename2$day
and i want this output:
... (7 Replies)
Hi,
i want to use regular expression in a for loop like this.
for var in "/Mar/2010"
do
echo "Usage for the date $var"
-----and want to grep $var partten from a file--------
done
and it is not working.
I am new to shell scripting, any one has any idea how to do it. (5 Replies)
hi,
i'm reading a file "LISTE_FILE" like :
#
$LOGCOM * 5
$PRCCOM * 10
and i want to use the file with "while" and having the fields splitted into new variables for treatment :
while read LINE
do
# Ignorer les commentaires un # en premiere position
if
then... (3 Replies)
eval echo \$tts_space_name$count
i m getting output of this stmnt as
'TBS_ADOX_EXTR3'
but,
I m not able to assign this value to a variable .
i tried
export j=`eval echo \$tts_space_name$count`
eval j= `eval echo \$tts_space_name$count`
and when i do echo $j ... i get o/p as 1 or 2... (1 Reply)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Hi
i tried to execute a below script but it is giving execution error
rec=ABC,1234,55.00
Colno=2
coldel=,
fd='"'$coldel'"'
fprint="'"'{print$'$colno'}'"'"
colsyn=`echo "echo "$rec "| awk -F"$fd $fprint`
echo column syntax is $colsyn
colrec=`colsyn`
echo column is $colrec (5 Replies)
I'm trying to use a series of regular expressions as variables but can't get it to behave properly.
You can see below what I'm trying to do.
Here with lowercase a-z and the same with uppercase, numbers 0-9 and again with a set of special characters, without having to type out every single... (3 Replies)
Discussion started by: 3therk1ll
3 Replies
LEARN ABOUT CENTOS
advdef
AdvanceCOMP Deflate Compression Utility(1) General Commands Manual AdvanceCOMP Deflate Compression Utility(1)NAME
advdef - AdvanceCOMP Deflate Compression Utility
SYNOPSIS
advdef [-z, --recompress] [-0, --shrink-store]
[-1, --shrink-fast] [-2, --shrink-normal] [-3, --shrink-extra]
[-4, --shrink-insane] [-f, --force] [-q, --quiet]
[-h, --help] [-V, --version] FILES...
DESCRIPTION
The main purpose of this utility is to recompress the data present in the .png, .mng, .gz, .tgz and .svgz files.
The internal structure of the files isn't changed. Only the compressed data is modified.
OPTIONS -z, --recompress FILES...
Recompress the specified files. If the -1, -2, -3, -4 options are specified it's used the smallest file choice from the previous
compressed data and the new compression. If the -0 option is specified the file is always rewritten without any compression.
-0, --shrink-store
Disable the compression. The file is only stored and not compressed. The file is always rewritten also if it's bigger.
-1, --shrink-fast
Set the compression level to "fast".
-2, --shrink-normal
Set the compression level to "normal". This is the default level of compression.
-3, --shrink-extra
Set the compression level to "extra".
-4, --shrink-insane
Set the compression level to "insane". It's VERY SLOW.
-f, --force
Force the use of the new file also if it's bigger.
LIMITATIONS
The advdef program cannot be used to recompress huge files because it needs to allocate memory for both the complete compressed and uncom-
pressed data.
COPYRIGHT
This file is Copyright (C) 2003, 2004 Andrea Mazzoleni
SEE ALSO advpng(1), advmng(1), advzip(1), gzip(1), bzip2(1)
AdvanceCOMP Deflate Compression Utility(1)