Original Usenet thread from rec.arts.ascii, started 14 Oct 1994.
_ _ _ _ _ _ | | | |___ ___ _ __ ___| |_ / \ _ __ ___| |__ (_)_ _____ | | | / __|/ _ \ '_ \ / _ \ __| / _ \ | '__/ __| '_ \| \ \ / / _ \ | |_| \__ \ __/ | | | __/ |_ / ___ \| | | (__| | | | |\ V / __/ \___/|___/\___|_| |_|\___|\__| /_/ \_\_| \___|_| |_|_| \_/ \___|
Info: How to send Figlet output to a file
rec.arts.ascii
· 13 messages · 14 Oct 1994 - 27 Oct 1994
Chris <mpu...@central.susx.ac.uk> wrote: >Danni Bauer (bau...@gtetel.com) wrote: >: If I want to say "Hello, World" in script font I: > > >: echo "Hello, World" | figlet -f script > >This does work, but it's a little difficult to get multi-line in one >file. > >Try > >figlet -f script >Hello World >^D > >Then, to save to a file, > >figlet -f script > text.file >This Text >Will be >figlitized >in >text.file >^D > >It's really up to you, whichever method you find easier. Interesting, I'll have to put that in the longer FAQs. -- :###### :##### :###### :####### :###### :##### ####### ::###### :### :### :### ####### ###### ######## ######## ###### ###### ######## ######## ### :### :### ### ::::### :::### :### ### :### ### :::### :::### :### ### :### ### :### :### ###### :### :::######## ####### :##### :### :::####### :### :### ### :### :### :###### ### :::######## ###### ::##### :### :::###### ::### :### ### :### :### ::::### ### :::### :### ### ### :### :::### :::### ### :### :### ### :### :### ####### ###### ### :### ### :### ###### ###### ### :### ######## ############# ###### ::##### ### :### ### :### ###### :##### ### :### :###### ::########### ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
bob...@wwa.com (Bob Allison) writes: >>: If I want to say "Hello, World" in script font I: >>: echo "Hello, World" | figlet -f script >>This does work, but it's a little difficult to get multi-line in one >>file. >>Try >>figlet -f script >>Hello World >>^D >>Then, to save to a file, >>figlet -f script > text.file >>This Text >>Will be >>figlitized >>in >>text.file >>^D >>It's really up to you, whichever method you find easier. > Interesting, I'll have to put that in the longer FAQs. Here's a vi macro that will figletise a line... " @F Expand Current Line with `Figlet' :map @F !!figlet -c -f When you run this macro (with @F in command mode - note that this is a "two-key" macro!), you can specify the font name on the command line (or else the default one will be used). The current line will be figletised (and centered) when you press return. Add this to your EXINIT variable, or to your ~/.exrc file (but beware that vi will ignore ~/.exrc if EXINIT is set). You could add a series of macros to vi like this, with different fonts, justification, smush modes and so on. Automatic execution is possible by finishing the macro with a ^M (done in vi by a control-V followed by Enter to produce a "hard" control-M). (Thanks to Anthony Thysson ant...@cit.gu.edu.au for the basis of how to do this). Cheers Tony _ ___ _ _ _ _ (:)====/__/\=(:)(:)======================(:)=============================(:) |\| _\_ \ \|\||=| Tony Nugent |\| T.N...@sct.gu.edu.au |=| |=| /__/\_\ \=||\| Griffity University |=| tnu...@gucis.cit.gu.edu.au |\| |\| / /\ __/\|(:)======================(:)=============================(:) |=|/ / /\ \ |=||=| "There are three kinds of lies: lies, damn lies, |=| |\/__/ \_\/ |\||\| and statistics." |\| |=\__\/\ \ |=||=| - Mark Twain |=| (:)==\__\/===(:)(:)======================================================(:) ~ ~ ~ ~
In <37mlkb$m7...@gagme.wwa.com> bob...@wwa.com (Bob Allison) writes: >>Then, to save to a file, >> >>figlet -f script > text.file >>This Text >>Will be >>figlitized >>in >>text.file >>^D >> >>It's really up to you, whichever method you find easier. Or even better ;-), make the file beforehand and redirect it to figlet figlet -f script < myfile.txt > text.file or cat myfile.txt | figlet -f script > text.file ... - Eero -
: figlet -f script < myfile.txt > text.file
: or
: cat myfile.txt | figlet -f script > text.file
: ...
: - Eero -
All these methods are just simple redirections and pipes. Do they work
in the same way on non-UX systems?
I do like the method here, cos it allows you to enter the text in any
friendly text editor. Thanx for the idea.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
________ _ mpu...@central.sussex.ac.uk
/ ____/ /_ _____(_)____ mpu...@cogs.sussex.ac.uk
/ / / __ \/ ___/ / ___/ __
/ /___/ / / / / / / /_ ___ ____ ______/ /__
\____/_/ /_/_/ /_/\__ \/ _ \/ __ `/ ___/ / _ \
___/ / __/ /_/ / / / / __/
/____/\___/\__,_/_/ /_/\___/
Bob Allison (bob...@wwa.com) wrote:
: Interesting, I'll have to put that in the longer FAQs.
Another idea, also related to another article
On unix a useful ksh script produces an example file for all fonts in
the current directory
-----cut here-----
#! /bin/ksh
for FILE in `ls *.flf`
do
echo $FILE >> example.file
echo ~~~~~~~~~~~~~~~ >> example.file
echo $FILE | figlet -f $FILE >> example.file
echo ~~~ ~~~ ~~~ >> example.file
done
-----cut here-----
Hope this is of interest.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
________ _ mpu...@central.sussex.ac.uk
/ ____/ /_ _____(_)____ mpu...@cogs.sussex.ac.uk
/ / / __ \/ ___/ / ___/ __
/ /___/ / / / / / / /_ ___ ____ ______/ /__
\____/_/ /_/_/ /_/\__ \/ _ \/ __ `/ ___/ / _ \
___/ / __/ /_/ / / / / __/
/____/\___/\__,_/_/ /_/\___/
In article <37p3d4$8r...@sashimi.wwa.com> T.N...@sct.gu.edu.au writes: > >bob...@wwa.com (Bob Allison) writes: > >>>: If I want to say "Hello, World" in script font I: >>>: echo "Hello, World" | figlet -f script >>>This does work, but it's a little difficult to get multi-line in one >>>file. >>>Try >>>figlet -f script >>>Hello World >>>^D >>>Then, to save to a file, >>>figlet -f script > text.file >>>This Text >>>Will be ok here is my question...I down load that file that had all the fonts.... but WHERE? do you get the figlet command... it did not come out of the uucode file... so where can i get my hands on a figlet file? Greg
Chris (mpu...@central.sussex.ac.uk) wrote: : : figlet -f script < myfile.txt > text.file : : or : : cat myfile.txt | figlet -f script > text.file : : ... : : - Eero - : All these methods are just simple redirections and pipes. Do they work : in the same way on non-UX systems? MS-DOS allows the same pipes and redirection.... don't know about the Mac Maree
mpu...@central.sussex.ac.uk (Chris) writes: >Bob Allison (bob...@wwa.com) wrote: >: Interesting, I'll have to put that in the longer FAQs. >Another idea, also related to another article >On unix a useful ksh script produces an example file for all fonts in >the current directory >-----cut here----- >#! /bin/ksh >for FILE in `ls *.flf` >do >echo $FILE >> example.file ^^ This might need to be >>! if "noclobber" is set. >echo ~~~~~~~~~~~~~~~ >> example.file >echo $FILE | figlet -f $FILE >> example.file >echo ~~~ ~~~ ~~~ >> example.file >done >-----cut here----- For what it's worth, here's another that will do the same thing: ===8<---crash-and-burn-all-above------------ foreach flf ( *.flf) echo $flf | figlet -f $flf >>! example.file end ===8<---crash-and-burn-all-above------------ with other embellishments as you wish. I use this at the command-line quite often when I want to quickly look at some fonts to choose one, although in this case I pipe the total result to less (or more). Cheers Tony ___ ___ L_|_ _|_J ( -O> <O- ) ___//\J +-------------------------------------------------+ L/\\___ //-,\ | Tony Nugent Email: | /,-\\ || / \\___L Griffith University T.N...@sct.gu.edu.au J___// \ || _ ''/\/ '---J Brisbane Queensland tnu...@gucis.cit.gu.edu.au L---' \/\'' _ / \ //\\. | Australia | .//\\ / \ |_/\'/ || +-------------------------------------------------+ || \'/\_| ' ||_ _|| ' |__) (__|
mpu...@central.sussex.ac.uk (Chris) writes: >: figlet -f script < myfile.txt > text.file >: or >: cat myfile.txt | figlet -f script > text.file >: ... >All these methods are just simple redirections and pipes. Do they work >in the same way on non-UX systems? Redirection CERTAINLY works on dos!! (Redirection can be very, VERY powerful!) Don't know about amiga or macs though... (I have my doubts). >I do like the method here, cos it allows you to enter the text in any >friendly text editor. Thanx for the idea. I have a vi macro (on unix) that goes like this to figletise the current line: :map @F !!figlet -c -f which will allow you to specify a font to use before you execute it (or you can delete the -f parameter to use the standard font). (Note that this is a TWO-key macro... @ then F in command mode!) The -c parameter just centers the result. (This macro goes into the EXINIT variable or into ~/.exrc) _ _ _ ___ _ _ _ | \ | | ___ __ _| |_ ( _ ) ___(_)_ __ ___ _ __ | | ___| | | \| |/ _ \/ _` | __| / _ \/\ / __| | '_ ` _ \| '_ \| |/ _ \ | | |\ | __/ (_| | |_ | (_> < \__ \ | | | | | | |_) | | __/_| |_| \_|\___|\__,_|\__| \___/\/ |___/_|_| |_| |_| .__/|_|\___(_) |_| :-) Cheers Tony _______________________________________________________________________________ \ Tony Nugent Griffith University, Brisbane, Queensland, Australia / / Email: T.N...@sct.gu.edu.au tnu...@gucis.cit.gu.edu.au \ \ / / ** This Message Was Printed On 100% Recycled Electronics ** \ >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-< \ for a in past present future; do / / for b in clients employers associates relatives neighbours pets; do \ \ echo The opinions in this article in no way reflect the opinions of my $a $b/ / done;done \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Amigas also have pipes and redirection (and many other things)
(1) Eso de trabajo es un deci' ;-D
_==| +---------------------------------+
_==| )__) | // | Argos Cue Castanedo |
The Amiga )_) )___) )) \\// | cas...@ecn.purdue.edu |
Pirate! )___) )____))_) \/Amiga | cu...@judith.ls.fi.upm.es (Summer|
_ )____)_____))__)\ Rules! | Phn: (616) 746-4436 |
\---__|____/|___|___-\\--- +---------------------------------+
^^^^^^^^^\ oo oo oo oo /~~^^^^^^^
~^^^^ ~~~~^^~~~~^^~~^^~~~~~ (Guarning: Not a computer pirate!)
~~^^ ~^^~ ~^~ ~^ ~^ (Guarning: Guarning's not Warning!)
Argos Cue (cas...@kennedy.ecn.purdue.edu) wrote:
>Amigas also have pipes and redirection (and many other things)
Sure do, but the standard shell doesn't support '|' for making a
pipe. However, there's an excellent "port" of csh which does("port"
because it's not strictly compatible with the Unix csh) as well as a
port of ksh(which IS strictly compatible with the Unix ksh/sh. I've
used it for Unix sh scripts often) Both of those support '|' and lots
of other good things.
--
Oh? grrrr!
In article <38egdc$jj...@sashimi.wwa.com> ogr...@netcom.com (Joe Rumsey) writes: >From: ogr...@netcom.com (Joe Rumsey) >Subject: Talk: Pipes & Redirection on Amiga >Date: 23 Oct 1994 15:17:48 -0500 >Argos Cue (cas...@kennedy.ecn.purdue.edu) wrote: >>Amigas also have pipes and redirection (and many other things) > Sure do, but the standard shell doesn't support '|' for making a >pipe. However, there's an excellent "port" of csh which does("port" It isn't exactly true. Standard Amiga Shell DO support pipes (Workbech 2.0 and above) but this feature is normally disabled! You have to set enviromet var _PCHAR to value "|" (or other char, you want to use as pipe delimiter). For detailed instruction se Amiga FAQ ;-) >because it's not strictly compatible with the Unix csh) as well as a >port of ksh(which IS strictly compatible with the Unix ksh/sh. I've >used it for Unix sh scripts often) Both of those support '|' and lots >of other good things. >-- >Oh? grrrr! ----------------------------------------------------------- wWWWw Martin Vobr Prague University of Economics -o-o- xvo...@vse.cz AMIGA 4000/30, PC 386, some brain ~ - ~ ------------------------------------------------------------ ~~~
g_f...@oz.plymouth.edu (Greg Fraize) writes: >ok here is my question...I down load that file that had all the fonts.... >but WHERE? do you get the figlet command... >it did not come out of the uucode file... >so where can i get my hands on a figlet file? The "official" ftp site for Figlet is: ftp.isu.edu:pub/figlet The Figlet WWW page http://math.uiuc.edu:80/~chappell/figlet/ lists some other sites. There is also FIGLET-L, a mailing list for both updates and discussions about figlet. If you want to be notified of updates to the Figlet software, email LIS...@vmd.cso.uiuc.edu with the body of the email saying subscribe figlet-l your full name set figlet-l topics=SOFTWARE where "your full name" should be your full name. If you want to know about new fonts as well, then it should say subscribe figlet-l your full name set figlet-l topics=SOFTWARE,FONTS If you want to be in on everything, including discussions, then just subscribe figlet-l your full name will do the trick. Remember not to post any discussions under SOFTWARE or FONTS. In fact, you should never post under SOFTWARE -- it is for "official" releases. You can post any new nifty software you write for figlet on the normal discussion, and if I decide to put it in the "official" distribution, I'll post a notice to SOFTWARE and make it available for ftp. Ian Chai
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
rec.arts.ascii
in 1994 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.