Hirdetés

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

  • BoB
    veterán

    Debian-ban nem úgy működnek a Joker karakterek mint Windowsban?

    Ha * karaktert használok az ELMÉLETILEG akármi lehet, üres, szám, betű, akár végtelen számú karakter.

    Viszont ha használom grep parancsnál, ezzel a parancsal kiírja ami nekem kell
    grep "first second"

    Ezzel viszont simán nem találja meg azt amit keresek.
    grep "first*second"

    Ha * helyett pontot használok, akkor jó, viszont egy új kereséshez kellene, hogy egy sorban 2 szót keressen közötte meg random karakterek, viszont a csillaggal ezt nem teszi meg, és nem tudom, hogy 10 vagy 11 vagy 12 karakter van, így a pontozás sem segítene. :\

    Van valami tippetek, hogy mi baja?

    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

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