Hirdetés

Új hozzászólás Aktív témák

  • BullZeye
    veterán

    Standard Wildcards (globbing patterns)

    * (asterisk)
    this can represent any number of characters (including zero, in other words, zero or more characters). If you specified a "cd*" it would use "cda", "cdrom", "cdrecord" and anything that starts with “cd” also including “cd” itself. "m*l" could by mill, mull, ml, and anything that starts with an m and ends with an l.

    Regular Expressions
    Regular expressions are a type of globbing pattern used when working with text

    .* (dot and asterisk)
    is used to match any string, equivalent to * in standard wildcards.

    * (asterisk)
    the proceeding item is to be matched zero or more times. ie. n* will match n, nn, nnnn, nnnnnnn but not na or any other character.

    Forras

    Köszi így máris működik, bár nem igazán értem, hogy miért kell ennyi féle wildcard megoldás, az embert csak összezavarja aki most kezdi.

    Főleg mert az első 3 google találatban nem igazán találtam ilyet, pedig grep-hez kerestem. :)

Új hozzászólás Aktív témák