1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nalin [4]
3 years ago
14

Write a Bash script that searches all .c files in the current directory (and its subdirectories, recursively) for occurrences of

the word "foobar". Your search should be case-sensitive (that applies both to filenames and the word "foobar"). Note that an occurrence of "foobar" only counts as a word if it is either at the beginning of the line or preceded by a non-word-constituent character, or, similarly, if it is either at the end of the line or followed by a non-word- constituent character. Word-constituent characters are letters, digits and underscores.
Computers and Technology
1 answer:
Aloiza [94]3 years ago
5 0

Answer:

grep -R  '^foobar'.c > variable && grep -R  'foobar$'.c >> variable

echo $variable | ls -n .

Explanation:

Bash scripting is a language used in unix and linux operating systems to interact and automate processes and manage files and packages in the system. It is an open source scripting language that has locations for several commands like echo, ls, man etc, and globbing characters.

The above statement stores and appends data of a search pattern to an already existing local variable and list them numerically as standard out 'STDOUT'.

You might be interested in
If the income elasticity for computers is 1.2, and incomes increase by 10%, the demand for computers, using one decimal place an
yarga [219]

Answer:

The answer is "12.0%".

Explanation:

Economically, price elasticity makes a clear distinction between a consumer's production and a consumer's earnings.  

  • In this question, income elasticity is given that is "1.2", and incomes increase percentage is given, that is 10%.
  • The total income elasticity is in percentage is 1.2 \times 10 \% \ = 12.0\  \%.
7 0
4 years ago
What type of relational methods that allow you to insert or update records and extract information from records for viewing? com
eimsori [14]

Data Manipulation Language (DML) allows a user to insert or update records and extract information from records for viewing.

<h3>What is a relational database?</h3>

A relational database is a type of database designed and developed to store, structure and recognize relation which exist between data points and items of information.

In database management system (DBMS), a type of relational methods which allows an end user to insert or update records and extract information from records for viewing is known as Data Manipulation Language (DML).

Read more on database here: brainly.com/question/13179611

#SPJ12

7 0
2 years ago
You are trying to appreciate how important the principle of locality is in justifying the use of a cache memory, so you experime
murzikaleks [220]

Answer:

Explanation:

Attached is the solution

3 0
3 years ago
Please write a code for below:
Zanzabum

Answer:

int main()  

{  

   int x,y;  

   bool b1, b2;  

   cout<<"enter values of x : ";

   cin>>x;

   cout<<"enter values of y : ";

   cin>>y;

   b1 = y > x; // false  

     

   b2 = x > y; // true  

     

   cout << "b1 is = " << b1 << "\n";  

   cout << "b2 is = " << b2 << "\n";  

     

   if (b2)  

       cout<<endl << "Larger Number" << "\n";  

   else

       cout << "Smaller Number" << "\n";  

         

     

return 0;  

}

8 0
3 years ago
Naomi is giving a presentation on historical figures. She has all the pictures of the people she wants to talk about. After each
kykrilka [37]
The answer would be A. The most efficient way is putting all the pictures on the presentation first and then just put a new text box after each picture and then just repeat the process for all the pictures. 
4 0
3 years ago
Other questions:
  • A vast global network that is made up of many smaller interconnected networks is known as:
    13·2 answers
  • A raised dot (ú) shows where the ENTER key was pressed. <br> a. True<br> b. False
    15·1 answer
  • 6 external computer parts that are input
    6·1 answer
  • Explain how software is distinct from hardware.
    8·2 answers
  • The "great big secret" Ohanian talks about is the idea that:
    15·1 answer
  • Software and technology that allow people to work together on a task are known as
    8·2 answers
  • 3. Coaxial/telephone cable sends<br> during the data transmission<br> signal
    9·1 answer
  • In portrait mode, your camera will use what?
    14·1 answer
  • Name:
    13·1 answer
  • 7. There are different tools needed in repairing computer, which of the following categories does parts retriever, screw driver,
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!