Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Find all unused scripts

  1. #1

    Default Find all unused scripts

    Hi!

    I did work for the last 4 years with kettle and after all that time, I have so many files (one for each subtransformations) that I can't easily find something when I really need it.

    So I said to myself "clean that crap".

    So please; does anybody know how to easily find the unused scripts in a directory?
    pdi-ce-4.4.0-stable
    jdk1.7.0_09
    Intel Core I3-2330M@2.2Ghz - 8Go ram
    Windows 7 FEP SP1

  2. #2

    Default

    Up!
    pdi-ce-4.4.0-stable
    jdk1.7.0_09
    Intel Core I3-2330M@2.2Ghz - 8Go ram
    Windows 7 FEP SP1

  3. #3
    Join Date
    Apr 2008
    Posts
    1,771

    Default

    Hi.
    If by "scripts" you mean ktr or kjb files, then I've got an idea - but I don't know if it could work.

    Basically you can create a table with all filenames, then do a recursive search in each file for any other filenames (the ktr and kjb files are xml).
    Consolidate your results - and if you find any filename that has not been found in any other, then you can probably delete it.
    -- Mick --

  4. #4

    Default

    Nice, gonna try it and will tell you about soon.


    Thanck's!
    pdi-ce-4.4.0-stable
    jdk1.7.0_09
    Intel Core I3-2330M@2.2Ghz - 8Go ram
    Windows 7 FEP SP1

  5. #5

    Default

    This PHP file http://www.warriordudimanche.net/vra...h_in_files.zip is a small form where you can specify:


    • the string that you're looking for ("chaine à chercher")
    • if you want to use regex or not (checkbox)
    • the directory where you want to search your string ("Dossier")
    • and the specific extension of the files you ant to scan ("extension")
    pdi-ce-4.4.0-stable
    jdk1.7.0_09
    Intel Core I3-2330M@2.2Ghz - 8Go ram
    Windows 7 FEP SP1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.