07.bash1.ans.even.RH4

Practical Guide to Fedora and Red Hat Enterprise Linux, A (4th Edition)

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Answers to Even-numbered Exercises 1. What command? 2. Using sort as a filter, rewrite the following sequence of commands: $ sort list > temp $ lpr temp $ rm temp $ cat list | sort | lpr 3. Whatnning? 4. Assume that the following files are in the working directory: $ ls intro notesb ref2 section1 section3 section4b notesa ref1 ref3 section2 section4a sentrev Give commands for each of the following, using wildcards to express file- names with as few characters as possible. a. List all files that begin with section . $ ls section* b. List the section1 , section2 , and section3 files only. $ ls section[1-3] c. List the intro file only. $ ls i* d. List the section1 , section3 , ref1 , and ref3 files. $ ls *[13] 5. Refer to tmands wil 7
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 6. Give a command to a. Redirect the standard output from a sort command into a file named phone_list . Assume that the input file is named numbers . $ sort numbers > phone_list b. Translate all occurrences of the characters [ and { to the character ( , and
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/10/2009.

Page1 / 3

07.bash1.ans.even.RH4 - 7 Answers to Even-numbered...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online