It is currently Fri, 15 Oct 2021 21:25:07 GMT



 
Author Message
 Trivia question: CSH word expansion

Anyone know a quick & easy way to take a word read into a variable and
expand it into individual characters in csh ?  I saw this somewhere but can't
track it down now that I need it.  Please post replies.



 Tue, 08 Mar 1994 04:01:01 GMT   
 Trivia question: CSH word expansion

Anyone know a quick & easy way to take a word read into a variable and
expand it into individual characters in csh ?  I saw this somewhere but can't
track it down now that I need it.  Please post replies.



 Tue, 08 Mar 1994 04:00:39 GMT   
 Trivia question: CSH word expansion

% set a="abcdefg"
% set b=`echo $a|sed 's/./& /g'`
% echo $b
a b c d e f g
% echo $b[2]
b

--
Bruce G. Barnett        barn...@crdgw1.ge.com       uunet!crdgw1!barnett



 Tue, 08 Mar 1994 05:18:46 GMT   
 
   [ 3 post ] 

Similar Threads

1. Question on order of filename expansion of {a,b}/{c,d} in bash (or csh)

2. Double expansion in csh

3. File name expansion in csh

4. wildcard expansion and symbolic links (csh, sh, ksh, bash)

5. wierd csh ~ file expansion problems

6. The Answer (was Need Help With Trivia Question)

7. Need help with trivia question

8. Need help with trivia question

9. Trivia Question


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software