07-12-2005
It's a kludge...
It's a cheat...
It's portable...
And it works...
I love it!
I don't know why I didn't think of that little slight of hand. Maybe when I have 4000 posts, I'll think of them too.
With a little snugging up, the code plus the addition (plus the new comment) is now only one line longer than it was before. I think I can live with that.
P.S.: If anyone knows of a "real" answer, I'd still be glad to hear it. I'm pretty sure my code (and the modification) is portable so maybe it doesn't matter.
P.P.S.: Thanks from a fellow Rocvillian!
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Can you guys please enable the "dotted" icon option, so that the thread icon for a thread in which a user has posted in will appear with a dot in it?
Thanks,
Aaron (2 Replies)
Discussion started by: Spetnik
2 Replies
2. AIX
Hi People,
Please advise if there is a command to retrieve the list of functions (user-defined) available at any certain point?
Cheers (1 Reply)
Discussion started by: easwam
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
The following code finds the line containing fruits in test.txt and replaces instances of apple with banana.
ed -s test.txt <<< $'/fruits/s/apple/banana/g\nw'
What I want to do is put variables in the place of fruits, apple and banana.
I have tried replacing ' with " to get... (2 Replies)
Discussion started by: de_la_espada
2 Replies
4. UNIX for Dummies Questions & Answers
Can someone cofirm that I have got the paths correct here? :confused:
$PATH_TO_TMP_DIR='/tmp';
#$PATH_TO_TMP_DIR='home/tmp';
$PATH_TO_YOUR_IMG_DIR = '/temp_images';
#$PATH_TO_YOUR_IMG_DIR = 'home/public_html/Midwich/temp_images';
Thanks (1 Reply)
Discussion started by: stubie
1 Replies
5. Shell Programming and Scripting
Hi,
I need to write an bash script which works like it can copy files from remote machine through ssh to the server where script is running in zip format with the structure i want. I don't want to get absolute path in zip archive. Please let me know how it can be possible.
ssh... (4 Replies)
Discussion started by: mirfan
4 Replies
6. Solaris
Hi,
How do I extract data from TAR excluding absolute paths for Tar? (Solaris)
Thanks (3 Replies)
Discussion started by: zam
3 Replies
7. Shell Programming and Scripting
i have some script with some paths inside it. The idea is to some files which is on desktop copy and move to another location. Problem is that inside script is similar to this:
cp test1.zip /root/help/
because I allways have another zip files, does it possible to have some input which ask me... (18 Replies)
Discussion started by: tomislav91
18 Replies
8. Shell Programming and Scripting
I am able to list all the filenames under a directory & its sub-directories except blent.tar on Linux
find "/tmp/" -type f | grep -v blent.tar | rev | cut -d '/' -f1 | rev
Desired Output:
THIRDPARTYLICENSEREADME.txt
javaws
libjavaplugin_oji.so
libjavaplugin_oji.so... (3 Replies)
Discussion started by: mohtashims
3 Replies
9. UNIX for Beginners Questions & Answers
I pass an argument to bash as run. The first command in green executes as expected, however the second in blue fails as the $run does not expand. I tried to escape the variable with \ thinking the quotes were making the literal translation and also "${run}" but both did not work to expand the... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. UNIX for Beginners Questions & Answers
Hi Guys,
I wrote a collection of bash functions years ago and now need to use them again but
I'm getting some error messages when eval tries to expand the variables names.
I recollect that I used the shopt command to set one of the options but I can't quite
remember the command that I... (8 Replies)
Discussion started by: ASGR
8 Replies
LEARN ABOUT REDHAT
g3topbm
g3topbm(1) General Commands Manual g3topbm(1)
NAME
g3topbm - convert a Group 3 fax file into a portable bitmap
SYNOPSIS
g3topbm [-kludge] [-reversebits] [-stretch] [g3file]
DESCRIPTION
Reads a Group 3 fax file as input. Produces a portable bitmap as output.
OPTIONS
-kludge
Tells g3topbm to ignore the first few lines of the file; sometimes fax files have some junk at the beginning.
-reversebits
Tells g3topbm to interpret bits least-significant first, instead of the default most-significant first. Apparently some fax modems
do it one way and others do it the other way. If you get a whole bunch of "bad code word" messages, try using this flag.
-stretch
Tells g3topbm to stretch the image vertically by duplicating each row. This is for the low-quality transmission mode.
All flags can be abbreviated to their shortest unique prefix.
REFERENCES
The standard for Group 3 fax is defined in CCITT Recommendation T.4.
BUGS
Probably.
SEE ALSO
pbmtog3(1), pbm(5)
AUTHOR
Copyright (C) 1989 by Paul Haeberli <paul@manray.sgi.com>.
02 October 1989 g3topbm(1)