Exercises
Next: Basic Security
Up: Shells I
Previous: : Escape
- I have a program, called names, which prompts the user
for a series of names and telephone numbers.
But I also have a file containing all that information, in the
right order.
How can I run names without having to type all the
information on the keyboard
- Take the same program names. Assume that the program usually
reads all the information, then sorts the information by last name, and
finally outputs the sorted information on the screen.
But I want it in a file.
How can I do that
What if I want to append it to a file called sorted.names
- I want to get rid of ALL my object files (they all end with .o).
What one command can I use
- I want to remove all my files beginning with a number, but also
end with an upper case character.
How do I do it in one command
- I want to remove all four-character files beginning with z.
What command can I use
- List all equivalent commands (no wildcards) to
rm my{fil,cap}e[1-4,7,9].
- I have a file containing an asterisk (*).
How can I remove it
- Assume I have a program that displays a list of dates on the
screen.
Let's call it display.dates.
I then want to take that information, and count how many lines have
been processed (I am not interested in seeing the intermediate
output - all I want to know is how many lines were processed).
What one-line command can I use
- I am working on an ASCII terminal, and I need to run a job
that takes fifteen (15) minutes to execute.
But I also have to write and send a piece of mail to my boss.
I have no window system, and I need to leave in 15 minutes.
How can I resolve my problem
Next: Basic Security
Up: Shells I
Previous: : Escape
Super-User
Fri Feb 17 15:55:40 EST 1995