Question

In: Computer Science

Write a brief explanation of why these commands function as described. 8. Why does `find ....

Write a brief explanation of why these commands function as described.

8. Why does `find . -name '*.pdf'` not find "BOOK.PDF" even if that file is in the current working directory?

9. Why does `find . -name 'pdf*'` not find "book.pdf" even if that file is in the current working directory?

10. Why does `find /etc -iname '*conf*'` return both directories and files?

Solutions

Expert Solution

`find . -name '*.pdf'`

The above command lists all the file in the current working directory that has the file extension .pdf. And -name switch is case sensitive. There the above command does not find 'BOOK.PDF' even if it is in the same working directory.

`find . -name 'pdf*'`

The above command searches for files that start with pdf in their name. We have used a wild card character * in the end of the search pattern. Example of files that will be listed are pdf1.txt, pdffile.jpg, etc. It does not find book.pdf because the file doesn't begin with the text 'pdf'. Also remember -name switch is case sensitive.

find /etc -iname '*conf*'

In the above command we have used wild card characters * in the beginning and end of the search text. And the -iname switch is a case insensitive search switch. So the above command returns all the file and folders that have conf as part of their name irrespective of whether it is a file or directory.


Related Solutions

Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 1: Communication and Relationship Management Memorial Hospital was moving rapidly to finalize its plans for new multiple-specialty outpatient center located 15 miles from the hospital campus. Strategically this was exactly what the health system needed to do. First, it...
Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 2: Professionalism The pressure was mounting with the nursing rank and file that nursing needed to become part of a bargaining unit. There were signs and indications in all three hospitals and one nursing facility that some level of...
Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 3: Leadership Mrs. Smith knew before any of her staff at General Valley Ob/Gyn that the practice had been sold to the area’s leading health system. The physician-owners of the practice were sure to keep her informed almost from...
Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 1: Communication and Relationship Management Memorial Hospital was moving rapidly to finalize its plans for new multiple-specialty outpatient center located 15 miles from the hospital campus. Strategically this was exactly what the health system needed to do. First, it...
Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 2: Professionalism The pressure was mounting with the nursing rank and file that nursing needed to become part of a bargaining unit. There were signs and indications in all three hospitals and one nursing facility that some level of...
Based on the Case below, Write a brief explanation that explains why the case represents its...
Based on the Case below, Write a brief explanation that explains why the case represents its particular ACHE competency domain. (Be sure that the explanation justifies the assigned competency domain based upon the facts and circumstances of the case.) Case: Case 4: Knowledge of the Healthcare Environment A new administrator in a large suburban healthcare system was hired to work in the corporate offices as a patient service coordinator for the five hospitals, one rehabilitation hospital and one skilled nursing...
A brief explanation of the social determinants of health and why they are significant to patient...
A brief explanation of the social determinants of health and why they are significant to patient care and outcomes.
Define the meaning of deregulating an industry and give a brief explanation as to why the...
Define the meaning of deregulating an industry and give a brief explanation as to why the government might regulate an industry in the first place
Provide a brief history of the Federal Reserve, including an explanation of why it was created....
Provide a brief history of the Federal Reserve, including an explanation of why it was created. Explain what the dual mandate is and how it guides the actions of the Federal Reserve Money supply Describe the goals of the Federal Reserve’s monetary policy Explain the tools used to regulate the money supply Relationship with Congress Explain who controls fiscal policy and how it attempts to close a recessionary gap. Describe why it is important for the Federal Reserve to maintain...
Write a new MATLAB function as described in the following: 1. The new function will have...
Write a new MATLAB function as described in the following: 1. The new function will have three input parameters: f, W, C. 2. Parameter f will specify the frequency of the square wave. 3. The parameter W will specify the width of the single pulse as a number of sample periods. 4. The parameter C will specify the number of square wave cycles. 5. Calculate a number of samples, N, to run the simulation for both waveforms. 6. Create one...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT