Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] deleting a local list of filenames from remote server
- Date: Wed, 3 Dec 2008 00:07:32 +0900
- From: "Ian Wells" <ijw@example.com>
- Subject: Re: [tlug] deleting a local list of filenames from remote server
- References: <4935289F.4090309@jj.em-net.ne.jp>
2008/12/2 Charles Muller <cmuller-lst@example.com>: > ssh user@example.com 'xargs rm < filelist public_html/cache/' > > I know that this is not close at all Not far off: something like: (cd local_path/ ; ls) | ssh user@example.com '(cd remote_path/; xargs rm)' You run the risk of unexpected things happening if you ever have spaces, leading hyphens, etc., in filenames, but otherwise you should be OK. The 'ls' could instead be 'find -type f -newer ... -print' if it's in a nested structure. find has lots of time-based options and I don't claim to have picked the best one or even one that exists ;-) HTH, -- Ian.
- Follow-Ups:
- Re: [tlug] deleting a local list of filenames from remote server
- From: Stephen J. Turnbull
- References:
- [tlug] deleting a local list of filenames from remote server
- From: Charles Muller
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] UIM-Anthy Command Silliness
- Next by Date: [tlug] deleting a local list of filenames from remote server
- Previous by thread: [tlug] deleting a local list of filenames from remote server
- Next by thread: Re: [tlug] deleting a local list of filenames from remote server
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links