EECS 2031 Lecture 3: u4_file_names

76 views3 pages

Document Summary

The character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. This will list all files in the current directory starting with list This will list all files in the current directory ending with list. The character ? will match exactly one character. So ?ouse will match files like house and mouse, but not grouse. We should note here that a directory is merely a special type of file. So the rules and conventions for naming files apply also to directories. In naming files, characters with special meanings such as / * & % , should be avoided. The safest way to name a file is to use only alphanumeric characters, that is, letters and numbers, together with. Bad filenames project. txt project my_big_program. c my big program. c fred_dave. doc fred & dave. doc.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents