Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 08:25
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Useful use of cat
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Sun 26 Feb 2012, 12:18    Post subject:  Useful use of cat
Subject description: Link.
 

Found this, really good examples. an ideas too.
http://www.in-ulm.de/~mascheck/various/uuoc/

Quote:
embedded cat

( cmd; cat file; cmd ) | cmd
A generic method to mix both fixed/existing and dynamic output.

Rather special example: This was useful for me on a Redhat Linux, where man(1) otherwise annoyingly
would intersperse the output with headers and footers for a print version, which is rarely used, though...
I tried: ( echo -e ".pl 1100i"; cat "$1"; echo ".pl \\n(nlu+10\n" ) | tbl | nroff -man

_________________

Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4336
Location: Gatineau (Qc), Canada

PostPosted: Sun 26 Feb 2012, 13:09    Post subject:  

Didn't know that. Thanks!
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4336
Location: Gatineau (Qc), Canada

PostPosted: Sat 03 Mar 2012, 05:47    Post subject:  

Traditionnally, cats are use to hunt mice and make dogs angry. Very Happy
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Sat 03 Mar 2012, 18:52    Post subject:  

musher0 wrote:
Traditionnally, cats are use to hunt mice and make dogs angry. Very Happy

Laughing

_________________

Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sat 03 Mar 2012, 20:07    Post subject:  





embedded cat attached

Aitch Smile
catcersize.gif
 Description   
 Filesize   20.34 KB
 Viewed   310 Time(s)

catcersize.gif

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0546s ][ Queries: 13 (0.0134s) ][ GZIP on ]