Sponsored Content
Top Forums Shell Programming and Scripting PERL: how to tell if variable is NULL Post 34867 by dangral on Tuesday 18th of March 2003 02:18:17 PM
Old 03-18-2003
Works like a charm...thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to filter a null variable.

I have the necessity to use this command: cat file1 | grep $A | grep $B where sometime A and, or, B are not set. For example: I set A=@ never defined or set B The above command send a cat error. Any idea? Thanks. Giovanni (1 Reply)
Discussion started by: gio123bg
1 Replies

2. Shell Programming and Scripting

check for NULL variable

Hello I want to check for NULL variable.. but this is not working..please help thanks in advance esham (2 Replies)
Discussion started by: esham
2 Replies

3. Shell Programming and Scripting

test Null variable

hi forum i beginning with script and i want test un null variable in a schell i just don t know the syntax here is a litle example y=test echo $y unset y echo $y (so here Y = Null) if Y=Null then echo "y is null" exit fi (1 Reply)
Discussion started by: kykyboss
1 Replies

4. Shell Programming and Scripting

not null cheking of an argument in perl

Hi, I have to check whether an argument say $ARGV is not null in an if operator. Please let me know the operator. It would be great if you write a psuedo code. Thanks in advance Ammu (4 Replies)
Discussion started by: ammu
4 Replies

5. Shell Programming and Scripting

how to check null variable

korn shell If then update_smartcare_user_password "$u_id" else echo "Not a database user" fi i get this error Syntax error at line *** : `then' is not expected. what should i do. I want to check whether $a is null or not. (2 Replies)
Discussion started by: sachin.gangadha
2 Replies

6. Shell Programming and Scripting

Question on NULL and zero value of variable

Hi all, I have a stupid question on NULL and zero(0). In a script I've been working with, one of the lines is: if && then The problem I seem to have is when $Current_csm2 is null, this if block is not triggered, and I don't get why because I was under the impression that NULL!=0 Can... (7 Replies)
Discussion started by: spynappels
7 Replies

7. Shell Programming and Scripting

Value of variable is NULL, but test doesn't seem to recognize

Hello, Unix-forums! My problem: read -p "Enter any number, please" number sleep 1 echo $number | tr -d 0-9 test -z $number && echo "Thank you" || echo "This is not a number"Test always displays "This is not a number". It doesn't matter if I entered a or 1. But if I order echo... (2 Replies)
Discussion started by: intelinside
2 Replies

8. Shell Programming and Scripting

Checking for null condition in a UNIX variable

i have this code for i in `cat sql_output.txt` do -- some script commands done sql_output.txt has 1 column with employee_ids If the sql_output.txt is null then the do loop should not execute. How can i implement this. for i in `cat sql_output.txt` If i is null or empty then ... (5 Replies)
Discussion started by: rafa_fed2
5 Replies

9. Shell Programming and Scripting

If condition to check null variable

Guys, Please help me on the below sample.cfg var=NULL sample.sh #!/bin/sh . /sample.cfg if ;then 1 st command here else 2 nd command here fi (3 Replies)
Discussion started by: AraR87
3 Replies

10. Shell Programming and Scripting

If grep value is null then assign 0 to variable

DELETE=`cat $logfile1 | egrep -i "Delete" | sed 's/ */ /g' | cut -d" " -f2` INSERT=`cat $logfile1 | egrep -i "Insert" | sed 's/ */ /g' | cut -d" " -f2` UPDATE=`cat $logfile1 | egrep -i "Update" | sed 's/ */ /g' | cut -d" " -f2` I need soming like below: if value is null... (8 Replies)
Discussion started by: Veera_V
8 Replies
foo2slx(1)						      General Commands Manual							foo2slx(1)

NAME
foo2slx - Convert Ghostscript pbmraw or bitcmyk format into a SLX printer stream SYNOPSIS
foo2slx [options] <pbmraw-file >slx-file foo2slx [options] <bitcmyk-file >slx-file foo2slx [options] <pksmraw-file >slx-file DESCRIPTION
foo2slx converts Ghostscript pbmraw, bitcmyk, or pksmraw output formats to monochrome or color SLX streams, for driving the Lexmark C500 network color laser printer and other SLZ-based printers. The SLX stream is a variant of ZjStream produced by Software Imaging K.K. COMMAND LINE OPTIONS
Normal Options These are the options used to select the parameters of a print job that are usually controlled on a per job basis. -c Force color mode if autodetect doesn't work. -g xpixxypix Set page dimensions in pixels [10200x6600]. -m media Media code to send to printer [0]. ----------------------- Media SLX ----------------------- plain 0 transparency 1 labels 2 thick1 3 envelope1 4 thin 5 thick2 6 envelope2 7 middle 8 special 9 -p paper Paper code to send to printer [6]. +---------------+-------------+ | 6 letter | 2 A4 | | 9 legal | 4 B5 | | 8 executive | 5 B5iso | |10 env #10 | 11 env DL | +---------------+-------------+ -n copies Number of copies [1]. -r xresxyres Set device resolution in pixels/inch [1200x600]. -s source Source (InputSlot) code to send to printer [0]. |0 auto | 1 cassette1 Printer Tweaking Options These are the options used to customize the operation of foo2slx for a particular printer. -u xoffxyoff Set the offset of the start of the printable region from the upper left corner, in pixels [0x0]. -l xoffxyoff Set the offset of the end of the printable region from the lower right corner, in pixels [0x0]. -L mask Send logical clipping amounts implied by -u/-l in the ZjStream [3]. 0 don't send any logical clipping amounts 1 only send Y clipping amount 2 only send X clipping amount 3 send both X and Y clipping amounts -A AllIsBlack: convert C=1,M=1,Y=1 to just K=1. Works with bitcmyk input only. -B BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input only. Debugging Options These options are used for debugging foo2slx. -S plane Output just a single color plane from a color print and print it on the black plane. The default is to output all color planes. 1 Cyan 2 Magenta 3 Yellow 4 Black -D level Set Debug level [0]. EXAMPLES
Create a black and white SLX stream: gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw -sOutputFile=- - < testpage.ps | foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zm Create a color SLX stream: gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk -sOutputFile=- - < testpage.ps | foo2slx -r1200x600 -g10200x6600 -p1 >testpage.zc FILES
/usr/bin/foo2slx SEE ALSO
foo2slx-wrapper(1), slxdecode(1) AUTHOR
Rick Richardson <rick.richardson@comcast.net> http://foo2slx.rkkda.com/
All times are GMT -4. The time now is 09:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy