If that were even valid, what would it accomplish? The instant you open a file with >, you truncate it, leaving nothing to read.
I have used similar syntax used in bash to open device files:
...to open a serial port for instance. Then I could echo asdf >&5 and read <&5 without reopening and re-closing the serial port every call. But I believe that's BASH-only syntax, and only useful in very specific circumstances.
Last edited by Corona688; 03-14-2012 at 01:13 PM..
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
The construct <>filename seems to work with ksh:
producing:
I needed to enter something from the keyboard for the read -u. So the intent seems OK, but perhaps a problem with bash ... cheers, dr;
Hi,
Anyone, please explain the purpose of /dev/ipldevice in AIX .. it would be a problem if there is no /dev/ipldevice while booting.
Regards,
Siva (1 Reply)
I'm new to Solaris and Linux and I was wondering if someone could explain to me in simple terms what the process Bind is on Solaris 10? Thanks, in advance. (6 Replies)
Hi All
Can anybody tell me what is the purpose of inv in the below command.
ftp -inv $RFTPSERVER /temp/te.txt << EOF
and << its stands for what..
Thanks (1 Reply)
Can any body kindly tell me what is the purpose of 2>&1 in the following commands.
nohup ./append_import.sh 1 > import1.out 2>&1 < /dev/null &
nohup ./append_import.sh 2 > import2.out 2>&1 < /dev/null & (1 Reply)
whats the purpose of the following script? who could run it? To what is the script refering that exceeds 75%? The mailbox?
What does sed 's/%//' do? (1 Reply)