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

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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