Aug 6, 2001 #1 cadbilbao Programmer Apr 9, 2001 233 ES Hi! I'm creating a shell script, and I want to execute a command only if there is a blank in ${FILE}. How could I carry it out? if _?_?_?_ then [command] fi Thank you very much.
Hi! I'm creating a shell script, and I want to execute a command only if there is a blank in ${FILE}. How could I carry it out? if _?_?_?_ then [command] fi Thank you very much.
Aug 6, 2001 Thread starter #2 cadbilbao Programmer Apr 9, 2001 233 ES I mean 'a blank in the __file name__' Upvote 0 Downvote
Aug 6, 2001 #3 chgwhat MIS Oct 6, 1998 206 CA try if [ 1 = `echo ${FILE}|grep " "|wc -l|tr -d ' '` ] then command fi Tony ... aka chgwhat tony_b@technologist.com When in doubt,,, Power out... Upvote 0 Downvote
try if [ 1 = `echo ${FILE}|grep " "|wc -l|tr -d ' '` ] then command fi Tony ... aka chgwhat tony_b@technologist.com When in doubt,,, Power out...