![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Linux and Unix Error ! Redhat,suse,centos,mandrake,Free BSD,Sun |
![]() |
|
Delete Lists of Files after grep in Linux
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 18,695
Join Date: Jan 2006
Rep Power: 10
IM:
|
I have a command that lists all files containing the text '***SPAM***', take the list, and delete All of them. this command lists all files containing text 'some text'.. but I'm not sure if it applies for '***SPAM***' grep -lir "some text" * |
|
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|