1 / 5

Lab 4 Filename Generation

Lab 4 Filename Generation. ICS 431 – Operating System. File Name Generating Characters. ? Matches any single character except a leading dot [ ] Defines a class of characters - Defines an inclusive range ! Negates the defined class

abdul-young
Download Presentation

Lab 4 Filename Generation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 4Filename Generation ICS 431 – Operating System

  2. File Name Generating Characters ? Matches any single character except a leading dot [ ] Defines a class of characters - Defines an inclusive range ! Negates the defined class * Matches zero or more characters except a leading dot

  3. File Name Generation -- ? ? Matches any single character. $ ls –a . .. .zzrstrsturstuvrstzbbabbcyzzzayy 7A 9B 7a 12D Example $ echo ??? $ echo rst?

  4. File Name Generation – [ ] [ ] Defines a class of characters from which one will be matched. $ ls –a . .. .zz 8B 11C 4D 6B Ant Cat Dog rstrstuvbacyz Example $ echo [abc]?? $ echo [1-9] [A-Z] $ echo [!A-Z]??

  5. File Name Generation -- * • Matches zero or more characters except a leading dot (.). $ ls –a . .. .profile ab.dat abcd.dat abcdeabcde.data Example $ echo * $ echo .* $ echo .*dat $ echo *e

More Related