1 / 5

Understanding Operating System File Name Generation and Matching Patterns

This guide delves into the intricacies of generating and matching file names in operating systems. We explore character classes, inclusive ranges, negations, and patterns used in file name generation. Key examples include using wildcards and character sets to filter and identify files effectively. This manual is designed for beginners and intermediate users who want to understand how to construct and interpret file matching expressions. Gain insights into practical applications with real-world examples demonstrating various commands and patterns for efficient file handling.

abdul-young
Télécharger la présentation

Understanding Operating System File Name Generation and Matching Patterns

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