Activity Stream
48,167 MEMBERS
6893 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1.     
    #11
    Member
    @sat no its not common filenames. But i got a list of the filenames i want to delete.


  2.   Sponsored Links

  3.     
    #12
    Member
    just add rm before the file names list and save with .sh and run it

  4.     
    #13
    Member
    please explain more or give an example

    like these are my file names just an example

    234234234.jpg
    4534543543.jpg
    54746564.jpg
    5464756475645645.jpg
    24f43r43r534f34.jpg

    something like that what would the .sh be and how do i run it


  5.     
    #14
    Member
    open the content in notepad and save with anyfilename.sh

    add like this

    rm 234234234.jpg
    rm 4534543543.jpg
    rm 54746564.jpg
    rm 5464756475645645.jpg
    rm 24f43r43r534f34.jpg

    login to ssh & run the filename in your linux box .

    sh filename.sh

    sh is shell script

  6.     
    #15
    Member
    Website's:
    serverworldwide.com seedcafe.info
    #!/bin/sh

    for (( i = 0 ; i <= 1000; i++ ))
    do
    read line
    rm $line
    done

  7.     
    #16
    Member
    Yea just as @sat says. It will work.
    -: Free Premium Account Giveaway! :-

  8.     
    #17
    Member
    can i have your screenshot?
    how many files per page?

  9.     
    #18
    Member
    Website's:
    aquickhost.com
    Hmm. SSH batch scripting should do. But im not sure about that. Google will surely hep.

  10.     
    #19
    Member
    Sorry its on a server. There are more than 10,000 files in a folder.


  11.     
    #20
    Member
    Website's:
    aquickhost.com
    put : "rm -f" in front of all those files with a text replacement software, ie notepad++ and put ";" semicolon after each file path, then paste everything in your PuTTy window, this shall remove all files.

    But im still sure, there a batch style way to do it, you will have to do a little research.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delete specific file in each folder
    By Ruriko in forum Technical Help Desk Support
    Replies: 6
    Last Post: 6th Oct 2012, 01:05 AM
  2. All Move Files to folder with same name on linux?
    By robinex in forum Technical Help Desk Support
    Replies: 2
    Last Post: 13th Jun 2012, 08:48 PM
  3. Sborg custom files from folder Help
    By Naughty Devil in forum General Discussion
    Replies: 5
    Last Post: 28th May 2011, 06:38 PM
  4. Replies: 10
    Last Post: 13th Jul 2010, 04:49 PM
  5. [linux]Rar files, upload to RS & HF then delete the files
    By Snell in forum Tutorials and Guides
    Replies: 8
    Last Post: 21st Jun 2010, 07:01 AM

Tags for this Thread

BE SOCIAL