Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2009, 06:47 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
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.
Old 04-23-2009, 08:13 PM   #2
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 340

Rep: Reputation: 142Reputation: 142
echo {jan,feb,mar}??    # bash brace expansion
jan?? feb?? mar??

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Administration Commands Needed RobertNikic Linux - Server 2 07-30-2008 09:04 AM
PostgreSQL-8.1, Kubuntu 6.06 alternate... HELP NEEDED FOR LINUX NEWBIE HelpSosHelp Linux - Newbie 4 05-20-2008 05:12 AM
Basic commands with short description needed...Can you anybody.... varul Linux - Newbie 3 05-08-2008 02:57 AM
Help needed with a few commands. God'sFool Slackware 2 05-27-2006 09:49 AM
Commands Needed S2k4ever Linux - Newbie 8 04-07-2006 09:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration