Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please provide the Unix command or sequence of commands that when entered into a Bash shell will produce the desired result in the current working
Please provide the Unix command or sequence of commands that when entered into a Bash shell will produce the desired result in the current working directory.
Question 5 - 10 marks On a remote computer with hostname mcmasterserver.com the user hopperg has a home directory with a subfolder named documents, which contains a file important.doc. On the local computer the parent directory of the current working directory has a subfolder named code. Give a single command that will transfer the important.doc file on the remote computer to the code folder on the local computer. Question 6 - 20 marks Write a single command that will find all occurrences of any of the following items contained in any file in the current working directory that ends with the extension .csv. Hint: You'll want to use as part of a regular expression. ERROR### where # is a digit between 0 and 5 O ERROR123 would match O ERROR945 would not match O ERROR1239 would contain a match (the first 8 characters still match!) XXX, XXXX, XXXXX, XXXXXX, XXXXXXX, XXXXXXXX, XXXXXXXXX o In other words, between three and nine X characters in a row. o X would not match O XXX would match XXXXXXXXXX - 10 X characters in a row would contain a match (the first 9 characters still match!) The text ALERT followed by 1 or more of any character that is not X or Y O ALERTA would match O ALERTABC would match O ALERTX would not match ALERTY would not match ALERTABCX would contain a match (the first 8 characters still match!)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started