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 7966155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:20:55+00:00 2026-06-04T06:20:55+00:00

I am new to linux & bash, and I am working on some different

  • 0

I am new to linux & bash, and I am working on some different scripts, but I have a few conceptual questions I need answered to help me find the best approach to what I want to do.

  1. What is the most efficient way to store data in a bash script, and save it as a file, that another script can speedily parse?

  2. What are some good examples of colorful bash menu’s? How can I have a multi-column menu’s in bash?

  3. Can I display images in bash or would it be better to send the image info to, let’s say a notify-send, and have it to display any images?

Thank you.

  • 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-04T06:20:57+00:00Added an answer on June 4, 2026 at 6:20 am

    That’s quite a potpourri of questions 🙂

    Firstly, the most efficient way to store data in a bash script depends entirely on the data and the processing you want done to it. If the processing will be done by bash itself, it’ll probably be faster in a bash variable (size permitting). If external programs like grep, sed or awk will be processing it under the direction of bash, a file may be better.

    But that’s a very general guideline – you need to analyse both the data and the use of it, especially since how it’s stored in the file is also important. By way of example, I wouldn’t store fixed length records as an XML file if I was processing it in bash alone, since that means I’d have to write a whole lot of XML processing code for the shell. I’d probably just store it as fixed length records in a flat file.

    Secondly, I have no examples for you, as bash tends to either be a command-line driven thing or, at most, a very simple menu-based thing. It’s not generally used for fancy UI work.

    And you can quite easily have multi-column menus, the simplest form being something like:

    echo "1. Enter new contact.       4. Find contact"
    echo "2. Edit contact             5. Exit"
    echo "3. Delete contact"
    

    Lastly, bash itself has no support for displaying images any more complicated than ASCII art:

      |\_/|
     / @ @ \
    ( > º < )
     \__V__/
     /  O  \
    

    So, if you need something more complex than that, you’ll probably be passing it off to an external program.

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

Sidebar

Related Questions

I am moving some scripts from a Linux box to a Windows box, but
is the following command working under Unix&Linux? ProcessBuilder prcbdoc = new ProcessBuilder(cmd,/C,start, Documentation.doc); prcbdoc.directory(new
I'm new to Linux, but i need to install the zimbra open source mail
I am new to Linux and was introduced to the & recently. I have
I am planning to build a new development computer for both Windows & Linux
I am rather new to Linux device driver programmring, but for debugging purposes, I
I am new body in Linux Debian , i succeeded to install it but
I am new to both Qt and Linux C++ development (although I have many
i am new in programming under linux and trying to get working this code:
I am writing some code for a linux program I am working on that

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.