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



OK.

Combining pieces from the suggestions from Clemens and Stephen, I was
able to get something working fairly quickly. Once it worked, I didn't
bother to try the rest of the suggested solutions, but I have learned from all of
them.

I have succeeded with this:

   scp ~/filelist user@example.com:public_html/cache;

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

# then, to delete the contents of the filelist when I am done:

   cp ~/filelist-null ~/filelist


The kind and expert help on TLUG is always deeply appreciated.

Chuck

-------------------

A. Charles Muller

University of Tokyo
Graduate School of Humanities and Sociology, Faculty of Letters
Center for Evolving Humanities
7-3-1 Hongo, Bunkyo-ku
Tokyo 113-0033, Japan 

Web Site: Resources for East Asian Language and Thought
http://www.acmuller.net

<acmuller[at]jj.em-net.ne.jp>   

Mobile Phone: 090-9310-1787




Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links