Sponsored Content
Full Discussion: Ignore lines in Shell Script
Top Forums Shell Programming and Scripting Ignore lines in Shell Script Post 302625939 by ad23 on Wednesday 18th of April 2012 02:05:16 PM
Old 04-18-2012
Thanks,

Works like a charm!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Make sed ignore lines

Hi I use sed in a script for severall changes in files. I whish one of the substitutions I made to be aplied to every line that has the word "scripts" with the exception for the ones that start with "rsh", wich I wish sed to ignore . Is this possible? If yes, how can I do it? The substitution... (2 Replies)
Discussion started by: Scarlos
2 Replies

2. Shell Programming and Scripting

Ignore Lines Begining With #

Is there a standard way to make a shell script read a file, or list, and skip each line that contains # at the begining, or ignores the content starting after a # in line? I'm looking to mimic the way commenting in a shell script normally works. This way I can comment my text files and lists my... (4 Replies)
Discussion started by: sysera
4 Replies

3. Shell Programming and Scripting

How can I ignore only the lines which have # at the begining?

From the below file I want to grep only the lines except the comment sections. But grep -v "#" is eliminating the last line because it has one # in between. Any idea how can I ignore only the lines which have # at the begining (I mean comment lines) ? Thanks a lot to all in advance C Saha (1 Reply)
Discussion started by: csaha
1 Replies

4. Shell Programming and Scripting

Ignore identical lines

Hello Experts, I have two files called "old" and "new". My old file contains 10 lines and my new file contains 10 + "n" lines. The first field in both these files contain ID. I sort these two files on ID. I am interested in only the lines that are in the new file and not in old. I tried... (4 Replies)
Discussion started by: forumthreads
4 Replies

5. Shell Programming and Scripting

expect - How to ignore empty lines?

Hi all, I'm looking for a way to generate an error when a command does not print an expected message. For example : test.sh : echo hi!test.exp : exp_internal 1 spawn ./test.sh expect { "hi!" {puts "bingo!"} "*" {puts "error!" ; exit 1} } I expected test.exp to match the string... (2 Replies)
Discussion started by: whbos
2 Replies

6. Shell Programming and Scripting

Shell Script to ignore # and take corresponding user and group

Hi, I have a following file: role.IMPACT_USER.user=admin role.IMPACT_USER.user=dd12345 role.IMPACT_USER.user=ss76767 #role.IMPACT_USER.user=root #role.IMPACT_USER.group=System role.IMPACT_USER.group=ImpactUser #Description: Allow users to login in to Impact, start and stop service... (5 Replies)
Discussion started by: dbashyam
5 Replies

7. Shell Programming and Scripting

ignore blank lines in while loop

Hi, i am having one text file it contains some blank lines and i want to ignore that blank lines . #! /bin/bash clear rdCount=0; while read myline do echo $myline let rdCount=$rdCount+1 done < ps.txt echo "Total line=$rdCount" and ps .txt contains the data- (17 Replies)
Discussion started by: aish11
17 Replies

8. Shell Programming and Scripting

Ignore Folder in Shell Script ?

Hi, I currently use a script to extract *.deb files located in a Directory called "/var/mobile/Media/Downloads" The Problem is howver I want the script to ignore the folder: "/var/mobile/Media/Downloads/New Debs and Files" (it shall NOT decompile any of the files in that folder. Here is... (2 Replies)
Discussion started by: pasc
2 Replies

9. Shell Programming and Scripting

Script using awk to find and replace a line, how to ignore comment lines

Hello, I have some code that works more or less. This is called by a make file to adjust some hard-coded definitions in the src code. The script generated some values by looking at some of the src files and then writes those values to specific locations in other files. The awk code is used to... (3 Replies)
Discussion started by: LMHmedchem
3 Replies

10. UNIX for Beginners Questions & Answers

How to ignore mutiple strings when using shell script?

Hi All, I am trying to use below syntax to find ignore multiple locations while searching for a file. find / -name "$serviceitem" ! -size 0 2>&1 |egrep -v "tmp|docker|WinSxS|Permission|HISTORY|alternatives|bearer11ssl|manifest" I tried to assign all the ignore strings to one variable... (2 Replies)
Discussion started by: sravani25
2 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 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy