Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:50:41+00:00 2026-06-12T05:50:41+00:00

Looking for en nicer solution for the next code: for i in a b

  • 0

Looking for en nicer solution for the next code:

for i in a b c
do
  for j in A B C
  do
    for k in 1 2 3
    do
      echo "$i$j$k"
    done
  done
done

Sure is here some simpler solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:50:43+00:00Added an answer on June 12, 2026 at 5:50 am

    This is a bit simpler

    echo {a,b,c}{A,B,C}{1,2,3}
    

    or if want one per line, so

    echo {a,b,c}{A,B,C}{1,2,3} | xargs -n1
    

    BTW, you can use the above bracer expansion for example saving keyboard typing for example when need make backup files, like:

    cp /some/long/path/And_very-ugly-fileName{,.copy}
    

    will make the /some/long/path/And_very-ugly-fileName.copy without second filename typing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a nice code solution for the following problem. I have
Looking for a storage solution for the following problem, preferably with some NoSQL-like speed
I'm looking for some type of solution for getting a window dev environment up
I'm looking for a nice tight regex solution to this problem. I'm looking to
library(ggplot2) This code produces a nice looking plot: qplot(cty, hwy, data = mpg, colour
Looking for an nice (short & elegant) one liner for the next perl script:
Possible Duplicate: Glowing Text (HTML CSS) So I'm looking for a 100% css solution
I am looking for a gem or solution to generate image in controller response.
I've started looking at jQuery's built-in tabs functionality here: http://docs.jquery.com/UI/Tabs Is there any way
I'm looking for a script/solution to export a single linux application display to VNC.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.