| Author |
Message |
GustavoYz

Joined: 07 Jul 2010 Posts: 868 Location: .ar
|
Posted: 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
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2269 Location: Gatineau (Qc), Canada
|
Posted: Sun 26 Feb 2012, 13:09 Post subject:
|
|
Didn't know that. Thanks!
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2269 Location: Gatineau (Qc), Canada
|
Posted: Sat 03 Mar 2012, 05:47 Post subject:
|
|
Traditionnally, cats are use to hunt mice and make dogs angry.
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 868 Location: .ar
|
Posted: Sat 03 Mar 2012, 18:52 Post subject:
|
|
| musher0 wrote: | Traditionnally, cats are use to hunt mice and make dogs angry.  |
_________________

|
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: Sat 03 Mar 2012, 20:07 Post subject:
|
|
embedded cat attached
Aitch
| Description |
|
| Filesize |
20.34 KB |
| Viewed |
214 Time(s) |

|
|
|
Back to top
|
|
 |
|