Bash Shell Scripting – Misc. Commands Create a bash script ~/test4.sh with any text editor. Write a bash script that does the following: echo "File Name: $0" echo "First Parameter : $1" echo "Second Parameter : $2" echo "Quoted Values: $@" echo "Quoted Values: $*" echo "Total Number of Parameters : $#" Take a screenshot of the console output. Run your scripts after doing a chmod 777 on the script. Open a terminal window and run the following commands: which gcc man gcc

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 3GZ
icon
Related questions
Question

Bash Shell Scripting – Misc. Commands

    1. Create a bash script ~/test4.sh with any text editor.
    2. Write a bash script that does the following:
      1. echo "File Name: $0"
      2. echo "First Parameter : $1"
      3. echo "Second Parameter : $2"
      4. echo "Quoted Values: $@"
      5. echo "Quoted Values: $*"
      6. echo "Total Number of Parameters : $#"
      7. Take a screenshot of the console output.
    3. Run your scripts after doing a chmod 777 on the script.
    4. Open a terminal window and run the following commands:
      1. which gcc
      2. man gcc
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L