PDA

View Full Version : Cercare un file che NON contiene una stringa


mmiat
24-09-2020, 17:51
in una cartella sto cercando i file che NON contengono una determinata stringa nel nome, dovrebbe funzionare con
ll | grep -L "STRINGA"
ma invece questo comando non trova nulla
cosa sbaglio? eppure mi sembra una cosa semplicissima da fare

Grumpos
27-09-2020, 15:04
ll | grep -v "stringa"

mmiat
28-09-2020, 17:12
grazie, confermo che -v fa' quello che mi serviva
ho poi eliminato tutto con

find . -type f -not -name "*STRINGA*" -delete

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.