Write a sed command that will add a tab to the beginning of every line.
Blog
What is the difference between the “man” command and the “he…
What is the difference between the “man” command and the “help” command?
Write a script that takes in a single argument, which is a s…
Write a script that takes in a single argument, which is a string of words separated separated by colons. For example, a possible input would be “The:cat:and:the:hat”. Your script should tokenize that string and search your current directory for any file with any of those names. For example, given the string above, your code would look for strings named exactly “The” or “cat” or “and”, etc and sum up the total that match.
In a file named Data each line has the format (where the nam…
In a file named Data each line has the format (where the names are only letters and the age is a number: lastName:firstName:age Write a line in bash that would replace the age field with ANON but leave the rest alone.
Suppose in your home directory, you have two folders, named…
Suppose in your home directory, you have two folders, named proj1 and proj2. In proj1 you have the subfolder proj3 which contains a file called out.data. In proj2 you have a subdirectory called proj4 with the file out.txt in it. Assuming you are in the proj4 directory, give me a command to copy out.data to your current location.
Antepartum care is usually reported with a no charge visit c…
Antepartum care is usually reported with a no charge visit code as this care is part of the global period reimbursed at the time of delivery.
Give a command that would let anyone in my group execute a f…
Give a command that would let anyone in my group execute a file but leave all the other permissions alone.
Give me a line for a script that would execute another scrip…
Give me a line for a script that would execute another script called dostuff.sh. If that script did not execute correctly based on its return code, it would then output ERROR.
Suppose I wanted a command to run every time I logged into t…
Suppose I wanted a command to run every time I logged into the system. How would I configure a system to do that?
Suppose you had a directory called dir1 and inside it a file…
Suppose you had a directory called dir1 and inside it a file called data.txt. Give me permissions on the directory and the file so that you could read that file from any location on the system and not be able to do anything else.