Write a command to list all files in current directory

Assignment Help Programming Languages
Reference no: EM13947835

1) Describe the result of executing each of the following grep commands.

a. grep -c ill memo

b. grep -n ill memo

2) Rewrite the following sequence of commands using sort as a filter. The end result should be a single command line when you are done.

sort roster > temp
lp temp
rm temp

3) Write a command to list all files in current directory, that:

a. Start with the letters b or f.

b. Start with the letters a through k.

c. Have a capital letter anywhere in their name.

4) What is the difference between the following commands?

cat xyz[12]
cat xyz[1-2]

5) Listing for which files will be given by the following command?

ls -l file[1-20]

6) Write a Bash script that will prompt for the user's first and last names and store the responses in two variables. Then it will display the stored information in the format "You entered lastname, firstname." and ask the user for confirmation. If the answer is "y" or "yes", then say "Thank you!", and if the answer is "n" or "no" then start again with the prompts.

Reference no: EM13947835

Questions Cloud

What discount rate should the firm use for the project : Gnomes R Us is considering a new project. The company has a debt-equity ratio of .72. The company’s cost of equity is 14.7 percent, and the aftertax cost of debt is 8 percent. The firm feels that the project is riskier than the company as a whole and..
Create a windows form application project. : Add an Enter Friend button which will process the entries made in the textboxes; writing each entry to a file and an Exit button which will exit the application
What is the role of the planned state column : What is the role of the planned state column? Discuss the capacity category and explain the meaning of each measure and its significance.
Summary of the eight steps in ethical decision-making model : Write a 3- to 4-page paper, including the following points: A summary of the eight steps in the ethical decision-making model proposed by Bush et al. (2006). A critical analysis of the ethical decision-making model (i.e., analyze the strengths and w..
Write a command to list all files in current directory : Rewrite the following sequence of commands using sort as a filter. The end result should be a single command line when you are done.
Give an estimate of this common popualtion variance : Give an estimate of this common popualtion variance by pooling the sample variances given. Give an estimate of this common population variance based on the variance of the sample means given.
How your own values and personal beliefs will impact the way : xplain how your own values and personal beliefs will impact the way in which you view some of a client's behaviors, thoughts, or emotions as being normal or abnormal. Use examples to illustrate your ideas
Draw the flowchart for the decision structure : Identify appropriate test values for the decision structure and submit the results of a desk check of the program.
What is the value of j : Find the value of J in the given problem. Square root of j + square root of j +14 = 3 square root j +10. what is the value of J?

Reviews

Write a Review

Programming Languages Questions & Answers

  Find e(x) and var(x)

Suppose 0.4 of students are women and gpa for women has mean of 3 and sd 0.8; Gpa for men has mean of 2.5 and sd of 1.0. a sample size of 100 students which consist 40 women and 60 men.

  Copies the content of one file into another file

write a c program that copies the contents of one file to a destination file.

  Write program to accept five input values in array

Write a program that accepts five input values and stores them into an array. The program should display those five numbers in reverse order.

  Examine the loop statements in the code sample column

Examine the loop statements in the Code Sample column of the template. Identify the loop type used in the Loop Type column of the template

  Write a program to create an array called first

Write a program to create an array called first, initialized with your first name followed by a space, and then your last name in the ROM space. The main code should read each element of this array; convert it to uppercase and save it in an array ..

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Sql statement that displays the isbn-title and profit

Provide a SQL statement that displays the ISBN, TITLE and PROFIT for all books where the COST is greater than or equal to $10.00 and less than or equal to $40.00. (The PROFIT is the difference between RETAIL and COST.) Include only those books tha..

  Application to convert kilometers in miles

Application will input number of kilometers, compute number of miles, and display number of miles. You will use a constant to store the kilometers-to-miles conversion factor.

  Write program to bounce blue ball inside jpanel

Write a program which bounces the blue ball inside JPanel. Ball must begin moving with the mousePressed event. When ball hits edge of JPanel, it must bounce off edge.

  Create a directory called registration

All the pages you created in Assignment One should also be present in Assignment Two not just the new pages or modified pages.

  Write script in fedora to automate complex system task

Write a script in fedora 10 that will automate a complex system task. The task I have chose is one that will determine the processes that are consuming system resources.

  Create class for factory workers are paid certain amount

Create class for Factory workers are paid a certain amount for each unit they make and their total pay is the number of units produced times the pay per unit.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd