X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,3a59c8977aee9a2a X-Google-Attributes: gidf996b,public X-Google-Thread: fbb9d,3a59c8977aee9a2a X-Google-Attributes: gidfbb9d,public X-Google-Thread: 110f55,3a59c8977aee9a2a X-Google-Attributes: gid110f55,public X-Google-ArrivalTime: 1994-10-22 01:13:07 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!sashimi.wwa.com!not-for-mail From: Tony Nugent Newsgroups: rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii Subject: Talk: Redirection on DOS & vi macro Date: 22 Oct 1994 01:22:55 -0500 Organization: Griffith University, Brisbane, Australia Lines: 54 Sender: boba@wwa.com Approved: boba@wwa.com Message-ID: <38ab3v$t36@sashimi.wwa.com> References: <37bbc9$mfc@ceylon.gte.com> <37ll66$65t@infa.central.susx.ac.uk> <37mlkb$m7g@gagme.wwa.com> <37pni6$1fs@sashimi.wwa.com> <383omd$7f5@sashimi.wwa.com> Reply-To: T.Nugent@sct.gu.edu.au NNTP-Posting-Host: sashimi.wwa.com Xref: nntp.gmd.de rec.arts.ascii:2376 alt.ascii-art:15733 mpuj0@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.Nugent@sct.gu.edu.au tnugent@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 \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~