01-25-2006
Sure, I thought about that, but that would match *.jpig, *.jpog, *.jpanythingyouwantg, etc. I'm looking for a more exact expression. Obviously your suggestion would work 99.999999% of the time though. I think an even better one would be *.[jJ][pP]?[gG] since ? restricts the wildcard to a single character, but still not quite what I'm looking for.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've got a very peculiar situation. I'm trying to find out if we can compare null fields with non-null. I've output csv files from SQL and Oracle. I need to compare each field from the files, and then find out any differences. The files usualy have over 500 fields, and send the resule to DBA.... (8 Replies)
Discussion started by: nitin
8 Replies
2. Shell Programming and Scripting
i have command sed
sed '/^*$/ d' which don't recognize the
how can i solve it? (2 Replies)
Discussion started by: kamel.seg
2 Replies
3. Shell Programming and Scripting
hi i have a file name : file^name
that i need to scp to different machine without changing the name
scp file^name user@machine/file^name
its throwing the error
cant use ^name(Something like this)
any solution i already tried differnt combinations like
"user@machine/file^name"... (2 Replies)
Discussion started by: narang.mohit
2 Replies
4. Shell Programming and Scripting
I have an input file having 7 fields delimited by ,
eg :
1,ABC,hg,1,2,34,3
2,hj,YU,2,3,4,
3,JU,kl,4,5,7,
4,JK,KJ,3,56,4,5
The seventh field here in some lines is empty, whereas the other lines there is a value.
How do I insert string NULL at this location (7th loc) for these lines where... (8 Replies)
Discussion started by: zilch
8 Replies
5. Shell Programming and Scripting
This is driving me crazy, and I'm hoping someone can help me out with this. I'm trying to do a simple while loop to go through a log file. I'm pulling out all of the lines with a specific log line, getting an ID from that line, and once I have a list of IDs I want to loop back through the log and... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
6. UNIX for Dummies Questions & Answers
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies
7. Shell Programming and Scripting
Hi All,
While using below command I am getting some unusual character in Release.txt file.How could I remove or stop them to go into Release.txt file
wget -q http://m0010v.prod.wspan.com/nggfmonatl/Default.aspx
cat Default.aspx|egrep -in "EFS|HOTFIX" | awk -F/ '{print $(NF-1)}'|cut -d... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
8. Shell Programming and Scripting
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies
9. Homework & Coursework Questions
how to list all filenames consisting of two lower case letters using metacharacters? (1 Reply)
Discussion started by: rathankumar
1 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Below is list of files in my directory.
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:58 12345_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12346_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12347_kms_report.csv
-rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59... (2 Replies)
Discussion started by: Balraj
2 Replies
LEARN ABOUT SUSE
img-jpeg
img-jpeg(n) img-jpeg(n)
NAME
img-jpeg - Img, Joint Picture Expert Group format (jpeg)
SYNOPSIS
package require Tk
package require img::jpeg ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::jpeg is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::jpeg.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Joint Picture Expert Group format (jpeg). More specifically img::jpeg extends Tk's photo image type.
The name of the new format handler is jpeg. This handler provides new additional configuration options. See section JPEG OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in jpeg format (options -data and -file) is detected automatically.
[2] The format name jpeg is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section JPEG OPTIONS.
JPEG OPTIONS
The handler provides six options, two effective when reading from a JPEG image, and five influencing the writing of such. One option is
usable for both reading an writing.
-fast This option is for reading from JPEG data. It usage activates a processing mode which is fast, but also provides only low-quality
information.
-grayscale
This option can be used for both reading and writing of JPEG data. Usage of this option forces incoming images to grayscale, and
written images will be monochrome.
-quality n
This option is for writing JPEG data. It specifies the compression level as a quality percentage. The higher the quality, the less
the compression. The nominal range for n is 0...100. Useful values are in the range 5...95. The default value is 75.
-smooth n
This option is for writing JPEG data. When used the writer will smooth the image before performing the compression. Values in the
10...30 are usually enough. The default is 0, i.e no smoothing.
-optimize
This option is for writing JPEG data. It usage causes the writer to optimize the huffman table used to encode the jpeg coefficients.
-progressive
This option is for writing JPEG data. It usage causes the creation of a progressive JPEG file.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
image handling, jpeg, tk
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-jpeg(n)