1 echo " 2 echo "Menu" 3 echo "..... 4 echo "1. Today DATE" 5 echo "2. Process of the system" "Users of the system" 7 echo "List of files" 6 echo 8 echo "Enter your choice" 9 read choice 10 case $choice in 11 1) date 12 2) ps 13 3) who 14 4)ls-1 15 *)echo This is not a choice 16 esacs

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

I try in diffrent way it is show me its not correct ??

if there another way to solve this question please help me ?? 

ubnutu [Running] - Oracle VM VirtualBox
File Machine View Input Devices Help
Activities
Terminal
jenan@jenan:~$
5
5: command not found
jenan@jenan:~$ 6
6: command not found
jenan@jenan:~$ gedit menu
jenan@jenan:~$
jenan@jenan:~$
chmod a+x menu
./menu
Menu
1. Today DATE
2. Process of the system
Users of the system
List of files
Enter your choice
1
jenan@jenan: ~
./menu: line 12: syntax error near unexpected token `)'
./menu: line 12: `2)ps'
jenan@jenan: $ 2
2: command not found
jenan@jenan:~$ 3
3: command not found
jenan@jenan:~$ gedit menu
jenan@jenan:~$
Transcribed Image Text:ubnutu [Running] - Oracle VM VirtualBox File Machine View Input Devices Help Activities Terminal jenan@jenan:~$ 5 5: command not found jenan@jenan:~$ 6 6: command not found jenan@jenan:~$ gedit menu jenan@jenan:~$ jenan@jenan:~$ chmod a+x menu ./menu Menu 1. Today DATE 2. Process of the system Users of the system List of files Enter your choice 1 jenan@jenan: ~ ./menu: line 12: syntax error near unexpected token `)' ./menu: line 12: `2)ps' jenan@jenan: $ 2 2: command not found jenan@jenan:~$ 3 3: command not found jenan@jenan:~$ gedit menu jenan@jenan:~$
ubnutu [Running] - Oracle VM VirtualBox
File Machine View Input Devices Help
Activities
Text Editor
Open
1 echo "....
2 echo "Menu"
"1
A
11
3 echo
4 echo
5 echo
6 echo
7 echo "List of files"
8 echo "Enter your choice"
9 read choice
"1. Today DATE"
"2. Process of the system"
"Users of the system"
10 case $choice in
11 1) date
12 2)ps
13 3) who
14 4)ls-1
15 *)echo This is not a choice
16 esacs
Transcribed Image Text:ubnutu [Running] - Oracle VM VirtualBox File Machine View Input Devices Help Activities Text Editor Open 1 echo ".... 2 echo "Menu" "1 A 11 3 echo 4 echo 5 echo 6 echo 7 echo "List of files" 8 echo "Enter your choice" 9 read choice "1. Today DATE" "2. Process of the system" "Users of the system" 10 case $choice in 11 1) date 12 2)ps 13 3) who 14 4)ls-1 15 *)echo This is not a choice 16 esacs
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L