Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site mtuni.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!akguc!mtunh!mtuni!chip From: chip@mtuni.UUCP (Charles Maurer) Newsgroups: net.unix,net.unix-wizards Subject: more shell questions Message-ID: <237@mtuni.UUCP> Date: Tue, 21-Jan-86 18:06:51 EST Article-I.D.: mtuni.237 Posted: Tue Jan 21 18:06:51 1986 Date-Received: Thu, 23-Jan-86 21:57:02 EST Distribution: net Organization: AT&T ISL Holmdel NJ USA Lines: 28 Xref: watmath net.unix:6903 net.unix-wizards:16494 HELP! I want to take a variable in the shell with imbedded spaces and question marks and do a set on the variable to yank out the question marks. i.e. $ ls thisfile thatfile xfile $ x="hello ????? world" $ echo $x hello xfile world $ echo "$x" hello ????? world $ set $x $ echo $2 $ xfile $ set "$x" $ echo $2 $ echo $1 hello xfile world $ echo "Can anybody help with this one? " $ echo "I've tried everything" $ mtuni!chip mtuni!chip not found $