1

while read issue

view story
linux-howto

http://www.unix.com – I'm using while read in a script to create a file but when I paste on the screen it echos out different than the data. The file is created correctly and the script does as it should. Just trying to resolve what's being show on the screen. Code:     while read FILES         do         echo $FILES >> $UPLOADDIR/DATA 2>>/dev/null         if [ "$FILES" = "" ];then           break         fi         done Example: Pasted (HowTos)