1
edit
Changes
→19 Answer
19. What will this command do to the existing file "sea"? date >>sea
<pre>Nes: It will redirect standard output of command "date" and append to the file "sea". The newer output will be writen at the end of the file "sea".
</Pre>
=== 20. What will this command do if the file "lake" does not exist? date >lake === Nes: The command will redirect the standard output of command "date" into a new created file "lake" === 21. What will this command do if the file "stream" does not exist? lpr <stream===Nes: It will capture standard output and save it to the file "stream", then the command "lpr" will put it in the print queue.
22. What is wrong with this command pipeline? How would you fix it? cat /usr/share/dict/words >/tmp/x | grep -i "[aeiou]" <<wc | wc -l
23. Write a bash script which asks the user for a one-line message and an e-mail address, then converts the message to uppercase and mails it to the address specified.