This is a discussion on Script to remove executable files within the Shell scripting forums, part of the Development/Scripting category; Hi We have /home/project/dir1 dir2 and so on of our project files. Some time we don’t need the executable files ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||||
|
Hi,
try these lines Code:
#!/bin/bash for name in `tree -ifp | grep "\[-..x" | tr -s " " | cut -d " " -f2` do rm $name done Quote:
Quote:
Quote:
Quote:
these filenames with relative pathname are saved in Quote:
Quote:
Try and see.. Gopal |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert perl code into binary executable | chandanperl | Coding in General | 0 | 03-13-2008 11:43 AM |
| Shell script for automatic conversion of files in tar files | kasimani | Shell scripting | 2 | 02-08-2007 04:45 PM |
| Executable file in Awstats RPM! | honey bee | Linux software | 2 | 03-29-2006 06:11 PM |
| Grep and remove files | Linux software | 1 | 01-05-2006 07:25 PM | |
| script for uploading files to a FTP server | marinm | Shell scripting | 7 | 01-02-2006 08:35 PM |