Alan D. Salewski on 31 Aug 2011 11:21:32 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Bash I/O redirection


On Wed, Aug 31, 2011 at 01:56:45PM -0400, JP Vossen spake thus:
*snip*
> Yes.  You want:
> 
> _bash Cookbook_
*snip*

Love it.

 
> 	# Optional, revert change & close FH3
> 	exec 1>&3-

Nice; I didn't realize you could tack a '-' on there to do the fd move
and the close in a single statement. Thanks for that!

 
> Later,
> JP

-Al


-- 
-----------------------------------------------------------------
a l a n   d.   s a l e w s k i                   salewski@att.net
1024D/FA2C3588 EDFA 195F EDF1 0933 1002  6396 7C92 5CB3 FA2C 3588
-----------------------------------------------------------------
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug