Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] deleting a local list of filenames from remote server



Charles Muller writes:

 > I am thinking that I need to do something that is (logically, at 
 > least) like this:
 > 
 > ssh user@example.com 'xargs rm < filelist public_html/cache/'

ssh user@example.com 'cd public_html/cache && xargs rm < filelist'

should do the trick.  (The && is paranoia, just in case the cd fails
and you have a similar files in your home directory for some reason.)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links