[bash] [redirection] appending using a file descriptor
From: claudibus (sick_soul_at_yahoo.it)
Date: 09/27/03
- Next message: Stephane CHAZELAS: "Re: Stuck on whole numbers."
- Previous message: Andreas Kahari: "[slightly OT] Re: how to logon to 30+ unix machines and put a job in background and logout automatically in a script?"
- Next in thread: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Reply: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Reply: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Sep 2003 02:26:00 -0700
Hello all,
I'm trying to append data to a file in bash using only an already open
file descriptor.
example (supposing file descriptor 5 is already open)
cat FILE >&5
works ok, but overwrites the file instead of just appending. So I
guessed
cat FILE >>&5
but I got
bash: syntax error near unexpected token `&5'
I've not found the answer in the info pages,
so I'm hoping for your greatly appreciated help.
Claudio
- Next message: Stephane CHAZELAS: "Re: Stuck on whole numbers."
- Previous message: Andreas Kahari: "[slightly OT] Re: how to logon to 30+ unix machines and put a job in background and logout automatically in a script?"
- Next in thread: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Reply: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Reply: Stephane CHAZELAS: "Re: [bash] [redirection] appending using a file descriptor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|