write a command
4 posters
Page 1 of 1
write a command
How can I arrange to have output go two places at once,
e.g. to the screen and to a file? give a command for this?
e.g. to the screen and to a file? give a command for this?
Re: write a command
cat | cat > file will result in input going to stdout as well as filenamed file
goldberg- Posts : 8
Join date : 2008-08-11
Re: write a command
dear gold berg just try it the command you have written on shell is it working .........
if you have not understand the question please ask me..........
if you have not understand the question please ask me..........
OOPS
Sorry I misinterpreted the question
I will try it if possible
Actually what I wrote will first ask me for Input(simultaneously write it to screen) and then just copy what I wrote to the file
(Please Correct me if I am still wrong)
I will try it if possible
Actually what I wrote will first ask me for Input(simultaneously write it to screen) and then just copy what I wrote to the file
(Please Correct me if I am still wrong)
goldberg- Posts : 8
Join date : 2008-08-11
Correct Answer
Suppose u wish to see the output of 'who'
who | tee file
who | tee file
ankitgr8- Posts : 6
Join date : 2008-08-11
Similar topics
» write your own shell
» write a script
» shell command
» Redirect output as argument for other command(plz help)
» write a script
» shell command
» Redirect output as argument for other command(plz help)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum