On Wed, 1 Sep 2004 03:41:04 -0700 (PDT), amitflu <[EMAIL PROTECTED]> wrote: > Hi all, > > I have been writing a long script for last 7 > days.I am stuck with a small problem. > > I need to use the name of the Standard output > file provided by the user in a shell script. > for example:- > ./myscript.sh > amit.txt > so I need to use "amit.txt" somewhere into my > shell scipt. > So please tell me how can i fetch it. > Can anybody help me??
You can mainpulate stdout fd using bash. You need not have the file name for that. Read the chapter on I/O redirection in the Advanced Bash Scripting Guide http://www.tldp.org/LDP/abs/html/ioredirintro.html http://www.tldp.org/LDP/abs/html/io-redirection.html -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

