Aug 6, 2001 #1 cadbilbao Programmer Joined Apr 9, 2001 Messages 233 Location 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 Joined Apr 9, 2001 Messages 233 Location ES I mean 'a blank in the __file name__' Upvote 0 Downvote
Aug 6, 2001 #3 chgwhat MIS Joined Oct 6, 1998 Messages 206 Location 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...