LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-23-2009, 06:47 PM   #1
Ronzalez
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
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 333

Rep: Reputation: 141Reputation: 141
Try
Code:
echo {jan,feb,mar}??    # bash brace expansion
jan?? feb?? mar??

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


Reply


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


All times are GMT -5. The time now is 06:43 PM.

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