On 09/17/2009 11:31 PM, Raj Mathur wrote:
> On Thursday 17 Sep 2009, steve wrote:
>>  btw, what is a 'here' document ?
>
> A here document is a shell construct by which you can simulate
> redirection from a file on the command-line.
>  [...snip...]
>    cat>  /dev/fd0<<some_string
>    This is the house that Jack built.
>    This is the malt that lay in the house that Jack built.
>    some_string
>
> The effect is as if you had put the text between
> some_string...some_string in a file and redirected stdin from that file,
> except that no actual file is created.  Convenient for quick-and-dirty
> texts, specially stuff you copy-paste from some application.
>
Oh ok ! thanks ! I've known and used the concept for such a long time without 
knowing that it had a name !

cheers,
- steve

-- 
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to