What is the difference between text enclosed

Assignment Help Software Engineering
Reference no: EM13326267

Question 1.

Study the following filenames which contain wildcards.

[A-Za-z]*.txt

text.*
file?.txt
[!0-9]*.tex

• Give three examples of filenames that would match each of the following wildcard patterns.
• Give three examples of filenames that would not match each of the above wildcard patterns.

Question 2. 
Assume that a file's permissions give you read and write access.
• What operations can you perform on the file if it is in a directory which has "r" (read) only access?
• What operations can you perform on the file if it is in a directory which has "x" (execute) only access?

Question 3. 
When the shell is reading the command line what is the di?erence between text enclosed between double quotes (") and text enclosed between single quotes (')? Consider two cases.

• there are environmental variables and
• there is no environmental variable.

Question 4.

Provide English description for the regular expressions listed below.

ab.cd
ab*cd
ab.*cd
abb*cd
^abc
^abc$
[abc]d
[^abc]d
[A-Z]xy
[A-Z_][a-zA-Z0-9]*

(For instance, the regular expression "x*$" could be described as "zero or more x at the end of a line".)

Question 5.

• Give the command-line of using find to list all the files having specific username in the current directory
• Give the command-line of using find to list all the subdirectories in the current directory
• Use find to produce a long ls listing of all files in /usr/bin that are more than 750Kb long. Give all the arguments and options in the following command-line
find ..... -exec ls -l {} \;

Note that pay special attention to the arguments or options. The semicolon must be escaped, but not the {}.

Question 6.

Create a big file (If you don't know how to create a big file, try ls -l /usr/bin > bigfile). Create two copies of it using cp, and call them
big1 and big2.

• Give the command-line of compressing big1 using gzip (should produce big1.gz).
• Compress big2 using bzip2(should produce big2.bz2).
• Give the command-line of comparing the sizes of the compressed files (big1.gz and big2.bz2) and the original (bigfile) using ls -l
• Give the command-line of checking the file type of compressed files and the original.
• Give the command-line of displaying the contents of big1.gz using zcat and big2.bz2 but using bzcat without uncompress them. (You
may pipe the output to head -10 to avoid lots of output).

Question 7.
• Use tar to create an archive (don't use the z or j option) of all the files in the current directory.
• Compress the tar file with gzip.
• View the contents of archive with gunzip -c gzipped-tar-file | tar tfv -
• View without using gunzip but use the tar instead. (Hint: ?nd the right option to use from the man page).
• Create a subdirectory of the current directory.
• Use tar to unpack the archive into that directory at the current directory.

Question 8.
Assume you have a text file called file. Explain the following command lines.

1. sed "s/the/a/g" file
2. sed -n "s/[A-Z]/&/gp" file
3. sed "32,45 s/[()]//g" file
4. sed "/^$/d" file
5. sed "s/\([0-9]\)-\([0-9]\)/\1\2/g" file
6. sed "80q" file
For example, sed 's/fox/ox/g' file will replace all occurance of fox with ox and not the just the first one in file.

Reference no: EM13326267

Questions Cloud

What angles does the transmission axis of the sheet make : Light known to be polarized in the horizontal direction is incident on a polarizing sheet. What angles does the transmission axis of the sheet make with the horizontal
Dfine consolidated undrained angle of shearing resistance : A sample of saturated soil was consolidated under an all-around pressure of 60 lb/in2. The axial stress was then increased without permitting drainage. The sample failed when the axial deviator stress reached 50 lb/in2.
What is the speed of light in this prism : Light is incident normally on the largest face of an isosceles-right-triangle prism. What is the speed of light in this prism
What is blanches horizontal acceleration at this instant : Blanche, a 100 kg shot-putter, is putting the 4 kg shot in a track meet. Just before she releases the shot, Blanche is in the air. What is Blanche's horizontal acceleration at this instant
What is the difference between text enclosed : When the shell is reading the command line what is the difference between text enclosed between double quotes (") and text enclosed between single quotes (')? Consider two cases.
Estimate the ground- level concentration at a distance : A point source with effective stack height of 50 m emits 80 g/s of on a clear summer day with surface winds at 4 m/s. Winds at 50 m are 5 m/s. An inversion layer starts at an elevation of 250 m.
Estimate ground-level particulate concentration 40m downwind : A long line of burning agricultural waste emits 0.3 g/m/s of particulate matter on a clear fall afternoon with winds blowing 3 m/s perpendicular to the line. Estimate the ground-level particulate concentration 400 m downwind from the line.
How high above the ground is the cannonball : A cannonball is shot (from ground level) with an initial horizontal velocity of 33 m/s and an initial vertical velocity of 24 m/s. How high above the ground is the cannonball 3.3 seconds after it is shot
By how much did the energy change during the insertion : A 13.5?F capacitor is connected to a power supply that keeps a constant potential difference of 26.0V across the plates. By how much did the energy change during the insertion

Reviews

Write a Review

Software Engineering Questions & Answers

  Develop user acceptance tests for the review

Develop User Acceptance Tests for the Review Content Query use case text description and create bug reports for any bugs you have identified in your executed tests.

  Creating a grade average program

Create a grade average program that will produce the numerical grade average of test scores input by a user.

  Determine one number missing from the sequence

Certain major software corporation likes to use in their interviews. Like many algorithm design problems, there are many possible answers, but I have presented one of the more generally accepted ones.

  What is the role of the project manager

What is the role of the project manager? Why is leadership so important for project managers and discuss the importance of top management commitment and the develppment of standards for successful project management.

  Identify several processes and concepts for managing project

Identify several processes and concepts for managing projects. Thinking about these processes and concepts, answer the following questions: Which process or concept do you feel would benefit your current organization the most? Explain.

  Produce a software design specification document

Complete the template as best as you can. Make any reasonable assumptions based on your understanding of the problem that allow you to address as many sections of the SDD template as possible.

  Sketching flowchart for people all in different departments

Sketch a document flowchart to depict each of the scenarios given below: Three people, all in different departments, look at the same document before it is eventually filed in a fourth department.

  Create a diagram for many-to-many relationship of entity

One-to-many or many-to-many relationship. Then, using short-hand notation introduced in text, create a diagram for each of the relationships.

  Highlights of project development activities

Assume you have just been asked to take over an existing assignment and asked to make a few changes for new features.

  Changes require to make to premiere products database design

Indicate changes (using shorthand representation) which you would require to make to Premiere Products database design to support following requirements.

  Draw flowchart to input all mid-term marks

Draw a flowchart to input 10 numbers and then determine the highest and lowest number among them. Draw a flowchart to input all the mid-term marks of computing studies class to determine it average.

  Recognize possible use cases-actors to make use case diagram

Recognize possible use cases and actors, and create use case diagram for Personal Trainer information system. Choose one of the use cases and create a class digram.

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