SlideShare a Scribd company logo
Using putty with Bash shell:
I am trying to complete the following:
Create a variable and set it equal to $1 ($1 is the value of the first item from the command line,
we will learn more about this later, but for now, we will use it to make testing easier.)
Display an introductory message including the path from the variable in step 1. The format is:
Let me determine some facts about /somepath ...
Use an if to determine whether the item indicated in the path exists. Display a message indicating
whether it does or does not exist. If it does exist, include in the message whether it is a file or
directory. If the item does not exist, return an exit status of 1. Refer to the sample output for
format and wording.
I have coded this so far, but get an error
What am I doing wrong?
path=' $1 ' echo "Let me determine some facts about /path..." if [ - d $path ] then #path exists
and is a Directory echo "$path exist.s" else #path exists and is a Eile elso "$path is a file" else
Decho"$path does not exist" exit 1 fi

More Related Content

PDF
Using your understanding of Hardy-Weinberg proportions- which of the f.pdf
PDF
Using visual studio 2022- a C# windows form application- and your Doub.pdf
PDF
Using the summary table above- match the sources of variation with the.pdf
PDF
Using PowerPoint draft an academic poster critically analysing and ill.pdf
PDF
Using the life cycle image above to help you define meiosis- haplece a.pdf
PDF
Using the Influence tactic known as pressure usually Involves Multiple.pdf
PDF
Using the information below- please prepare the 2020 and 2021 Balance.pdf
PDF
Using the following national income accounting data- compute (a) GDP-.pdf
Using your understanding of Hardy-Weinberg proportions- which of the f.pdf
Using visual studio 2022- a C# windows form application- and your Doub.pdf
Using the summary table above- match the sources of variation with the.pdf
Using PowerPoint draft an academic poster critically analysing and ill.pdf
Using the life cycle image above to help you define meiosis- haplece a.pdf
Using the Influence tactic known as pressure usually Involves Multiple.pdf
Using the information below- please prepare the 2020 and 2021 Balance.pdf
Using the following national income accounting data- compute (a) GDP-.pdf

More from acteleshoppe (20)

PDF
Using the company Netflix- Based on your prior research- determine.pdf
PDF
Using the code below- I need help with creating code for the following.pdf
PDF
Using the code below- I need help with the following 3 things- 1) Writ.pdf
PDF
Using the assigned class reading- -SOCIAL CONTROL THEORIES OF URBAN PO.pdf
PDF
Using the areas in Figure (the Empirical Rule)- find the areas between.pdf
PDF
Using sources from the Internet- identify some of the problems facing.pdf
PDF
Using Python- Prompt the user to enter a word and a single character-.pdf
PDF
Using linux - For each environment variable below- state whether it is.pdf
PDF
Using Java and the parboiled Java library Write a BNF grammar for the.pdf
PDF
using basic python P4-16 Factoring of integers- Write a program that a.pdf
PDF
using C# language- a WPF application will be made with the application.pdf
PDF
Using a waterfall framework is suitable for a project involving which.pdf
PDF
Using an electronic version of Figure 13 (attached here)- 1- Illustrat.pdf
PDF
Use the turtle Python built-in library functions to write code that pr.pdf
PDF
Use the teslowirg numbers for the population in a smet city for the ye.pdf
PDF
Use the table to match each loan with the type of finance company that.pdf
PDF
Use the folowing numbers for the popsiation in a mat ciy for the year.pdf
PDF
Use the table below to answer question #1-6 Meaning of what is used in.pdf
PDF
Use the frequency distribution shown below to construct an expanded fr.pdf
PDF
Use the statements below to describe the evolution process for a Sun-l.pdf
Using the company Netflix- Based on your prior research- determine.pdf
Using the code below- I need help with creating code for the following.pdf
Using the code below- I need help with the following 3 things- 1) Writ.pdf
Using the assigned class reading- -SOCIAL CONTROL THEORIES OF URBAN PO.pdf
Using the areas in Figure (the Empirical Rule)- find the areas between.pdf
Using sources from the Internet- identify some of the problems facing.pdf
Using Python- Prompt the user to enter a word and a single character-.pdf
Using linux - For each environment variable below- state whether it is.pdf
Using Java and the parboiled Java library Write a BNF grammar for the.pdf
using basic python P4-16 Factoring of integers- Write a program that a.pdf
using C# language- a WPF application will be made with the application.pdf
Using a waterfall framework is suitable for a project involving which.pdf
Using an electronic version of Figure 13 (attached here)- 1- Illustrat.pdf
Use the turtle Python built-in library functions to write code that pr.pdf
Use the teslowirg numbers for the population in a smet city for the ye.pdf
Use the table to match each loan with the type of finance company that.pdf
Use the folowing numbers for the popsiation in a mat ciy for the year.pdf
Use the table below to answer question #1-6 Meaning of what is used in.pdf
Use the frequency distribution shown below to construct an expanded fr.pdf
Use the statements below to describe the evolution process for a Sun-l.pdf
Ad

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Lesson notes of climatology university.
PDF
Complications of Minimal Access Surgery at WLH
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharma ospi slides which help in ospi learning
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Lesson notes of climatology university.
Complications of Minimal Access Surgery at WLH
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharma ospi slides which help in ospi learning
VCE English Exam - Section C Student Revision Booklet
STATICS OF THE RIGID BODIES Hibbelers.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Supply Chain Operations Speaking Notes -ICLT Program
Ad

Using putty with Bash shell- I am trying to complete the following-.pdf

  • 1. Using putty with Bash shell: I am trying to complete the following: Create a variable and set it equal to $1 ($1 is the value of the first item from the command line, we will learn more about this later, but for now, we will use it to make testing easier.) Display an introductory message including the path from the variable in step 1. The format is: Let me determine some facts about /somepath ... Use an if to determine whether the item indicated in the path exists. Display a message indicating whether it does or does not exist. If it does exist, include in the message whether it is a file or directory. If the item does not exist, return an exit status of 1. Refer to the sample output for format and wording. I have coded this so far, but get an error What am I doing wrong? path=' $1 ' echo "Let me determine some facts about /path..." if [ - d $path ] then #path exists and is a Directory echo "$path exist.s" else #path exists and is a Eile elso "$path is a file" else Decho"$path does not exist" exit 1 fi