Fri, 16 Feb 2024 22:17:41 +0100, w <uqojdh$71k$1$grzegorz@news.chmurka.net>,
"Grzegorz Niemirowski" <grzegorz@grzegorz.net> napisał(-a):
> radekp@konto.pl <radekp@konto.pl> napisał(a):
> > dir /b *.mp4 | findstr /i "@" >list.txt
> > To powyżej listuje mi wszystkie pliki *.mp4 zawierające @
> > A jak wylistować pliki *.mp4 NIE zawierające @? Czyli odwrotność tej
> > instrukcji.
>
> Zastanawiam się jak ktoś, kto umie napisać takie polecenie, nie jest w
> stanie znaleźć w pomocy odpowiedniej opcji...
>
> /V Drukuje tylko wiersze, które nie zawierają dopasowania.
Dzięki, Jakoś przeoczyłem.
Przy okazji -- dlaczego mój findstr jest w wersja ang?
FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]
[/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]
strings [[drive:][path]filename[ ...]]
/B Matches pattern if at the beginning of a line.
/E Matches pattern if at the end of a line.
/L Uses search strings literally.
/R Uses search strings as regular expressions.
/S Searches for matching files in the current directory and all
subdirectories.
/I Specifies that the search is not to be case-sensitive.
/X Prints lines that match exactly.
/V Prints only lines that do not contain a match.
PS. Również w "Ten komputer" mam Downloads zamiast Pobrane.
|