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 Tue 21 Oct 2014, 16:45
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 Posts_count  
Author Message
GustavoYz


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

PostPosted: Sun 26 Feb 2012, 12:18    Post_subject:  Useful use of cat
Sub_title: 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: 4254
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_website 
musher0


Joined: 04 Jan 2009
Posts: 4254
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_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   259 Time(s)

catcersize.gif

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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