You want to know which files are large files (at least 0.1MB) in your data directory, but you do not want to go through them one by one. So you decide to design a regular expression to help with this. Locate the rule under the p1 target in your Makefile. This rule uses the Is command to list the contents of the data directory in your current folder. The -I option produces the long listing for these contents, which includes their size in bytes. The output of this is command is then piped as input into grep command. The-E option for the grep command allows searching through this text with a regular expression. Replace the regular expression in this grep command to search for any 6 digit number. Since the size of these files are displayed in bytes, the smallest possible six digit number: 100000 corresponds to 0.1MB. When this regular expression is correct, running "make p1" should display the three large files that can be found within the provided data directory. Tip: Start by composing a regex that matches any single digit, and test this to make sure that it works as expected. If you encounter trouble with one specific way of matching single digits, like \d, then please try to find another way that works with grep - E. Once this is working, look for a way to extend this pattern so that it must be repeated exactly six times to be matched.

Answers

Answer 1

You must pipe the command's output through grep in order to utilize grep as a filter. " | " is the symbol for pipe.

Explain about the grep?

The full line containing the matched string is displayed by default when using grep. To display only the matched pattern, change this setting. Using the -o option, we may instruct grep to show only the matching string. Using grep -n, output should be displayed together with the line number: To display the file's line number where the matching line was found.

Within collections of files, the grep command can look for a string. It outputs the name of the file, a colon, the line that matches the pattern, and the pattern when it discovers a pattern that matches in more than one file.

Instead of putting a filename at the end of a grep command, use an asterisk to search all files in the current directory.

To learn more about string refer to:

https://brainly.com/question/16397908

#SPJ4


Related Questions

In general terms, the cloud refers to high-power, large-capacity physical _____ located in data centers, and each one typically hosts multiple _____.

Answers

A data center's high-power, large-capacity physical servers, each of which often houses several virtual servers, are referred to as the "cloud" in general.

By cloud computing, what do you mean?

A type of abstraction known as "cloud computing" is built on the idea of pooling real resources and presenting them to consumers as virtual resources. In the simplest terms, cloud computing refers to the practise of storing and accessing data and software on remote servers located online rather than a computer's hard drive or local server.

A virtual server: what is it?

In contrast to dedicated servers, virtual servers pool hardware and software resources with other operating systems (OS).

To learn more about cloud computing visit:

brainly.com/question/11973901

#SPJ4

a researcher conducted an experiment in whice he compared two methods of teaching if there were 10 people

Answers

A researcher ran an experiment in which he contrasted two teaching strategies for a class of ten students. then using 10 as a teaching strategy.

What is a good number of people for an experiment?

When utilizing qualitative methods, 30 is more than sufficient and a respectable sample size, but when using quantitative methods and analysis, less than 100 is insufficient for even a basic statistical analysis.

It is fairly simple to differentiate instruction and learning. Giving lessons on a specific subject to a group of students is the simple definition of teaching. Learning, on the other hand, is obtaining knowledge through study, instruction, and experience.

Face-to-face lectures involve students and instructors interacting in real time, which is one of the key contrasts between face-to-face and online training. In contrast, online students study at their own pace, going through lectures and other course materials.

To learn more about teaching method refer to :

https://brainly.com/question/22786034

#SPJ4

. An engineer has calculated the list of subnet IDs, in consecutive order, for network
172.30.0.0, assuming that the /22 mask is used throughout the network. Which of the
following are true? (Choose two answers.)
a.
Any two consecutive subnet IDs differ by a value of 22 in the third octet.
b.
Any two consecutive subnet IDs differ by a value of 16 in the fourth octet.
c.
The list contains 64 subnet IDs.
d.
The last subnet ID is 172.30.252.0

Answers

The network as a whole employs the /22 mask. 64 subnet IDs are included in the list. 172.30.252.0 is the last subnet ID shown.

How can you figure out how many subnets there are in a network?

Number of total subnets: The value 248 (11111000) of the subnet mask 255.255.255.248 shows that 5 bits are utilized to identify the network.

How is an ID for a subnet determined?

By counting the subnet bits, also known as the number of bits by which the initial mask was stretched, one can determine the number of subnets. We were first given the IP 192.168.0.0 with the mask 255.255.0.0.

To know more about network visit:-

https://brainly.com/question/15088389

#SPJ1

A network engineer has determined the list of subnet IDs, in chronological order.

A. Any two consecutive subnet IDs differ by a value of 22 in the third octet.

D. The last subnet ID is 172.30.252.0.

What is engineer?

Engineering is the application of scientific principles and practical knowledge to design, create and analyze technological solutions. It is a field of study that combines the use of mathematics, science and technology to solve problems in the real world. Engineers use their knowledge of mathematics, science and engineering principles to create innovative solutions to a wide range of problems. Engineers work in a variety of industries, from aerospace and automotive to biomedical and electrical. They also work in many different settings, from research laboratories to manufacturing facilities. Engineers are responsible for creating products, machines, systems and processes that meet the needs of customers and society.

To learn more about engineer

https://brainly.com/question/17169621

#SPJ1

Other Questions
Hello can someone help me out with these two questions!?!?! This will help me a lot thank you! :D Word Problems: (please write out the equations and solve it)1. David is going out for a pizza. The Pizza costs $10.50 plus $1.50 for each extratopping ,x. Write an equation to represent the total cost of the pizza, t.Dependent variable:Independent variable:Equation:Use your equation to determine the total cost of the pizza with 3 extratoppings.The total cost of the pizza is when sending a group email how do you ensure that one or several recipients cannot see the names? russia released brittney griner, the american basketball star, from a penal colony under what condition? If inventories unexpectedly rise, then production _____ sales and firms will respond by _____ output.a. Trails; expanding.b. Trails; reducing.c. Exceeds; expanding.d. Exceeds; reducing. according to wine-searcher, wine critics generally use a wine-scoring scale to communicate their opinions on the relative quality of wines. wine scores range from to , with a score of indicating a great wine, indicating an outstanding wine, indicating a very good wine, indicating a good wine, indicating a mediocre wine, and below indicating that the wine is not recommended. random ratings of a pinot noir recently produced by a newly established vineyard in follow: excel file: data07-11.xlsx 87 91 86 82 72 91 60 77 80 79 83 96 a. develop a point estimate of mean wine score for this pinot noir (to decimals). 82.00 b. develop a point estimate of the standard deviation for wine scores received by this pinot noir (to decimals). 9.6389 at a very large incident, the ____ section is responsible for managing the tactical operations usually handled by the IC on routine EMS calls. A mi abuela _____ _____________ los duraznos. (gustar) Alonso went to the market with \$55$55dollar sign, 55 to buy eggs and sugar. He knows he needs a package of 121212 eggs that costs \$2.75$2.75dollar sign, 2, point, 75. After getting the eggs, he wants to buy as much sugar as he can with his remaining money. The sugar he likes comes in boxes that each cost \$11.50$11.50dollar sign, 11, point, 50 what international organization runs a dispute settlement process in which countries can resolve trade inequalities in a formal arena? a collection of dna fragments of various lengths was subjected to electrophoresis. arrange these dna molecules in order, based on the distance they would travel from the well. the molecule that travels the shortest distance should be at the top of the list, and the molecule that travels the greatest distance should be at the bottom of the list.a. 900 bpb. 2500 bpc. 4200 bpd. 6000 bpe. 8000 bp emily surveyed all the students at her school to find out if they plan to attend college. the results are shown in the two-way frequency table. emily knows that the student body at her high school is distributed as follows: freshmen: 28% sophomores: 26% juniors: 24% seniors: 22% according to the information emily has gathered, which of the following statements are true? choose all that are correct. responses more than 40% of the students at the school are freshmen or sophomores who plan to attend college. more than 40% of the students at the school are freshmen or sophomores who plan to attend college. more than 10% of the students at the school are juniors or seniors who do not plan to attend college. more than 10% of the students at the school are juniors or seniors who do not plan to attend college. if a student who plans to attend college is selected at random, the probability that he or she is a senior is 0.1804. if a student who plans to attend college is selected at random, the probability that he or she is a senior is 0.1804. if a student at the high school is selected at random, the probability that he or she is a freshman who does not plan to attend college is 0.15. if a student at the high school is selected at random, the probability that he or she is a freshman who does not plan to attend college is 0.15. which sentence correctly describes when the triple-alpha process occurs in the life cycle of an average-mass star You install 538 feet of fencing along the perimeter of a rectangular yard. The width of the yard is 127 feet. What is the length of the yard? The elevator descends with an acceleration of 0.9 m/s. Find how much a 95 kg person weighs in it at the moment of descent. -------------------due now--------------------- Select all true statements regarding gamma decay. There are currently 25 frogs in a (large) pond. The frog population grows exponentially, tripling every 10 days. How long will it take (in days) for there to be 150 frogs in the pond? Time to 150 frogs: days The pond's ecosystem can support 1400 frogs. How long until the situation becomes critical? Time to 1400 frogs: days Yiannis is the CEO of a company that has cornered the market on products for both amateur and professional golfers and is the primary seller for the majority ofthese products in the marketplace. What BEST describes the competitive structure that Yiannis's business participates in?A. MonopolyB. Perfect competitionC. MonopsonyD. Monopolistic competition If a fair coin is tossed 9 times, what is the probability, rounded to the nearest thousandth, of getting at most 2 tails?