Re: help in shell scripting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 02, 2003 at 08:36:09AM -0600, Harry Putnam wrote:
> Here is one way but it assumes all file names begin with lower or
> upper case letters:
> ... 
>    echo $ii|sed 's/^[a-zA-Z]/'"$predefined_char"'/'

Excuse me if I missed something, but what's wrong with:

	OUTFNAME=`echo $ii|sed -e "s/^./$predefined_char/"`;
-- 
	Dave Ihnat
	ignatz@xxxxxxxxxx


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux