The time now is Sun 19 May 2013, 02:12
All times are UTC - 4 |
| Author |
Message |
GustavoYz

Joined: 07 Jul 2010 Posts: 864 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: 2193 Location: Gatineau (Qc), Canada
|
Posted: Sun 26 Feb 2012, 13:09 Post subject:
|
|
Didn't know that. Thanks!
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2193 Location: Gatineau (Qc), Canada
|
Posted: Sat 03 Mar 2012, 05:47 Post subject:
|
|
Traditionnally, cats are use to hunt mice and make dogs angry.
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 864 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 |
207 Time(s) |

|
|
|
Back to top
|
|
 |
|
|
|
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.0619s ][ Queries: 12 (0.0255s) ][ GZIP on ] |