subject

1. find lines in a file that contained the word "abracadabra"? 2. encode words in a file, by changing some letters to numbers: a -> 4 o -> 0 (oh to zero) I -> 1 e -> 3 z -> 2 s -> 5 3. print a file on the printer - what command would you use (it won't work on our computer, since it is in a county office, and can't connect to the printer in our lab)? 4. list only the third and fifth field of each line in a file, when the fields are separated by a pipe symbol ("|") 5. Try looking up the following accounts in /etc/passwd. Make sure you find only the account asked for, and no others. kwan kwan1 hale bryan isaacs (What command would you use to do this, and how would you use it?)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Computer security/cybersecurity1) each of the following code fragments contains a number of security vulnerabilities. for each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way that it could be improved. note that in your discussion of how each vulnerability could be improved, you do not need to re-write a new version of the program in c; simply discuss your solution, either in pseudocode or in 1-2 sentences.a) /* file descriptor leak */#include #include int main(int argc, char *argv[]){ char *filepath = argv[0]; char *shellpath = argv[1]; file *passwords; passwords = fopen(filepath, "r"); /* read the password and do something with it */ /* . . */ /* fork and execute alternative shell */ execl(shellpath, "shell", null); }b)#include /* assume the following function is written for an electronic storefront. the user will enter the id of the item to be ordered, as well as the quantity of units that they would like to purchase. the program will then lookup the price for the price for the item using a predefined function, and return the total cost of the order.*/int gettotalcost(){ char itemid[9]; int price, unitsordered, cost; printf(" enter the 9-digit id of the item to be ordered: "); scanf("%s", & itemid); /* lookup the price according to the itemid */ price = getpricebyid(itemid); printf(" enter the quantity of units to be ordered: "); scanf("%d", & unitsordered); cost = price * unitsordered; return cost; }c)#include /* the following function is intended to return a user's full name by concatenating the user's first and last name into a single string and then returning that string. */char *getfullname(char *firstname, char *lastname, int max_len){ char fullname[max_len]; strcpy(fullname, firstname); strcat(fullname, " "); strcat(fullname, lastname); return fullname; }d)#include /* the following code snippet runs through the list of cli arguments entered and displays them to the console. */int main(int argc, char *argv[]){ int i; printf("you've entered the following arguments: "); for(i = 0; i < argc; i++){ print(argv[i]); printf("\n"); } /* */}
Answers: 2
question
Computers and Technology, 25.06.2019 10:00
Aline ab is in 1st quadrant , its ends a and b respectively are 20mm and 60mm infront of vp respectively . the distance between the end projectors is 75 mm . the line is inclined at 30 degrees to the hp and end a 20 degrees above the hp . draw its projections , find true length
Answers: 2
You know the right answer?
1. find lines in a file that contained the word "abracadabra"? 2. encode words in a file, by changin...
Questions
question
Mathematics, 15.12.2021 15:30
question
Mathematics, 15.12.2021 15:30
question
Biology, 15.12.2021 15:30
question
Mathematics, 15.12.2021 15:30
question
Mathematics, 15.12.2021 15:40
question
Mathematics, 15.12.2021 15:40
question
Mathematics, 15.12.2021 15:40
Questions on the website: 13722367