I created the following script:
#!/bin/tcsh
#csh script to prepend standard input to file argument
#Version 1
#name temp file
set tf = /tmp/ppd.$$
#get argument name
set dest = $argv[1]
#copy standard input, $dest to $tf
cat - $dest $tf
#replace original file
mv $tf $dest
However, when I
On Tue, 13 Apr 2004, Christopher Spears wrote:
I created the following script:
#!/bin/tcsh
#csh script to prepend standard input to file argument
#Version 1
#name temp file
set tf = /tmp/ppd.$$
#get argument name
set dest = $argv[1]
#copy standard input, $dest to $tf
cat - $dest
--- Igor Pechtchanski [EMAIL PROTECTED] wrote:
On Tue, 13 Apr 2004, Christopher Spears wrote:
I created the following script:
#!/bin/tcsh
#csh script to prepend standard input to file
argument
#Version 1
#name temp file
set tf = /tmp/ppd.$$
#get argument name
set dest
On Tue, 13 Apr 2004, Christopher Spears wrote:
--- Igor Pechtchanski [EMAIL PROTECTED] wrote:
^^^
http://cygwin.com/acronyms/#PCYMTNQREAIYR
On Tue, 13 Apr 2004, Christopher Spears wrote:
I created the following script:
#!/bin/tcsh
#csh
Hmmm...The good new is that I am no longer getting
error messages. The bad news is that nothing seems to
be ending up in the file. I created a file called
disk_storage in vi. Then I did the following:
(date; du ~) ~/disk_storage
This put some text into the file. Then I ran:
(date; du ~) |
At 09:58 PM 4/13/2004, you wrote:
Hmmm...The good new is that I am no longer getting
error messages. The bad news is that nothing seems to
be ending up in the file. I created a file called
disk_storage in vi. Then I did the following:
(date; du ~) ~/disk_storage
This put some text into the
6 matches
Mail list logo