LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2016, 09:15 AM   #1
Geoff.
LQ Newbie
 
Registered: Mar 2016
Location: Finland
Distribution: ubuntu
Posts: 7

Rep: Reputation: Disabled
Brace Expansion


Hi, not sure this is posted in the right place but anyway.
I have been trying to use this command for brace expansion ~]$ echo
but it is not working.
I would be grateful for any help.
 
Old 03-05-2016, 09:20 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
http://wiki.bash-hackers.org/syntax/expansion/brace

Hi,
would be nice to explain what have you really tried, what's happened and what did you expect...
"it is not working" is not enough to discuss it.
 
Old 03-05-2016, 09:24 AM   #3
Geoff.
LQ Newbie
 
Registered: Mar 2016
Location: Finland
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi ok i was trying this ~]$ echo Front-{A,B,C}-Back
and was expecting this Front-A-Back Front-B-Back Front-C-Back
but just get command not found
 
Old 03-05-2016, 09:27 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
echo Front-{A,B,C}-Back
works for me.
what is that ~]$ before echo?
 
1 members found this post helpful.
Old 03-05-2016, 09:32 AM   #5
Geoff.
LQ Newbie
 
Registered: Mar 2016
Location: Finland
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot that works for me too
not sure what ~]$ that was but i am just learning and that was in the book
 
Old 03-05-2016, 09:38 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so that is the prompt, at least the left side of it.
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/
https://www.kirsle.net/wizards/ps1.html
http://ezprompt.net/
 
Old 03-05-2016, 09:41 AM   #7
Geoff.
LQ Newbie
 
Registered: Mar 2016
Location: Finland
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: Disabled
yes thanks just realised feeling a bit thick now
 
Old 03-06-2016, 04:19 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so you have learned something. That is definitely good.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash - brace expansion using variable student04 Linux - Software 3 03-07-2017 05:04 AM
brace expansion + new line szejiekoh Linux - Newbie 10 01-12-2015 04:03 PM
bash brace expansion won't output two zero hahacc Linux - Newbie 6 03-31-2014 03:49 AM
Brace expansion: does this kind exist? exscape Linux - Software 4 04-28-2009 03:45 AM
bash: extra stuff in brace expansion jhwilliams Programming 4 09-07-2007 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:01 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
Open Source Consulting | Domain Registration