LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Alternate commands needed (https://www.linuxquestions.org/questions/linux-newbie-8/alternate-commands-needed-721269/)

Ronzalez 04-23-2009 05:47 PM

Alternate commands needed
 
In what other ways can I express

echo jan?? feb?? mar??

I tried things like echo [jan;feb;mar]?? but they didn't work. I'm essentially trying to create a command that employs something like the distributive property in math, where you apply one multiplier to several member quantities in a group, all at once.

Kenhelm 04-23-2009 07:13 PM

Try
Code:

echo {jan,feb,mar}??    # bash brace expansion
jan?? feb?? mar??

printf '%s?? ' jan feb mar
jan?? feb?? mar??



All times are GMT -5. The time now is 06:00 AM.