ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need a function (or a command line tool?) in a bash script that does the following:
Expands word "[Ss]ome[Ww]ord"
to the following list:
"Someword someword SomeWord someWord"
I.e. it should expand one single word to a list of words using all possible combinations of the letters in each square-bracket pairs in the original word.
There may be any number of square-bracket pairs in the original word, and there may be any number of characters between a square-bracket pair.
Is there maybe a command-line tool that can do just the same?
Thanks, it works now, but I am faced with an other problem during the same "project":
When I tried to install hunspell-1.0-RC2 from source on this SuSE 9.1 box, I get these errors:
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [hunspell] Error 1
I deleted the line "#define CURSES" from hunspell.cxx, so hunspell should not use curses at all. Then why do I get this error?
Besides, I have curses-devel v. 5.4-59 installed, together with all other dependencies of hunspell.
I also made the missing symlink from /lib/libncurses.so.5.4 to /lib/libncurses.so.
There is no configure script for hunspell, so I do not know what to do next...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.