- 论坛徽章:
- 0
|
1.List the (non-hidden) files in "/usr/local/linuxgym-data/gutenberg" ordered based on modification time, from the least recently modified ("oldest") to the most recently modified ("newest"), and store this list in a file called "oldest_to_newest" in your home directory. Include only the file names. Do not include the path prefixes.
2.The "cat" command can be used add line numbers to a file. Add line numbers to the file, foo.txt located in
/usr/local/linuxgym-data/gutenberg. Save the result to the file saucy_salamander .
Hint 1: use the man page to see the options for cat.
Hint 2: use q to quit man.
3.List all files in directory "/usr/local/linuxgym-data/gutenberg" whose name starts with a "0" or a "2" or a "w" and also contains an "s" character, store this list into a file called
"trustry_tahr". The filenames must be stored with absolute pathnames. Ensure that this is exactly the output of command "ls". |
|