|
Write a single command to accomplish the following goals:
1.Remove all files with file names longer than five characters
2.Find all files that end in the extension “.cpp” and create a of each, in the same directory, with the same name appended with “.backup”. For example, if you find “~/code/helloWorld.cpp” you should create “~/code/helloWorld.cpp.backup”
3.Make a complete copy of your home directory (and all subdirectories inside, recursively) into the /temp directory.
Write Regular Expressions that match strings of the following criteria:
1. Any string that begins with an ‘a’, ends with an ‘a’, and contains anything except ‘a’s in-between.
2. Any string that contains three digits, next to each other, or not next to each other.
3. Any string that begins with a vowel (a, e, i, o, or u, never mind y), capital or lowercase. |
|