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

  Program to read the contents of file into the array

Write down the program which asks user for a file name. Suppsoe the file contains the series of numbers, each written on separate line.

  Create program to calculate and display number of miles

Create a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the drivers speed.

  Create an instance of the person class

Create an instance of the Person class

  Write java program which declares the array alpha

Write the Java program which declares the array alpha of 50 elements. Initialize array so that first 25 elements are equal to square of the index variable and the last 25 elements

  Write class using static variable to store annual interest

Write class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders. Each object of class contains private instance variable savingsBalance,

  Discuss benefits and drawbacks of perl.

Write a 3 to 5 page paper discussing the above, particularly the benefits and drawbacks of Perl.

  Program for vehicle registration department

Consulting firm has narrowed the choice of programming language to Java and C#. Which language do you believe would be more suitable for this application and why?

  Develop the algorithms needed for designer robot

You have been hired as a system designer to develop the algorithms needed for a designer robot that can paint different patterns on the floor based on the commands it receives.

  Add comment lines for the different sections.

Add comment lines for the different sections.

  Design a website by using php and mysql to order pizza

Your task for this project is to design a website by using PHP and Mysqlto order pizza - A website with a complete catalog of pizzas with possible add-on options and customers should be able to prepare and customize an order as per their preference..

  Using a software program to create story books

submit a unit plan spanning Two to Four weeks. See this example of a unit plan, (or search the web for a unit plan example that best suits matches your needs). Technology should be integrated for assessment, instruction, and student engagement..

  Design an application

The entries cannot be less than 0 or above 100.

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