Mass edit software for OSX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • POed-poster
    Confirmed User
    • Feb 2005
    • 1588

    #1

    Mass edit software for OSX

    Anyone know where I can get a mac-based program that will allow me to mass edit an identical string of characters over hundreds of pages and directories?
    If you have a music site that sells digital downloads, please contact me.
  • gleem
    Confirmed User
    • Jun 2001
    • 5593

    #2
    I use BBEdit to do that assuming it's anything but word/excel docs.




    Contact me: \\// E: webmaster /at/ unprofessional.com

    Comment

    • POed-poster
      Confirmed User
      • Feb 2005
      • 1588

      #3
      Any other suggestions?
      If you have a music site that sells digital downloads, please contact me.

      Comment

      • rhcp011235
        Confirmed User
        • Sep 2007
        • 538

        #4
        Try textwrangler
        Skype rhcp011235 | Cell Phone 212.812.9043 | Email [email protected]

        Comment

        • JasonB
          Confirmed User
          • Nov 2001
          • 1183

          #5
          bbedit for sure. textmate possibly also. can probably do it in terminal too with a bit of google searching

          Comment

          • rhcp011235
            Confirmed User
            • Sep 2007
            • 538

            #6
            Learn bash for the term. for i in `ls -1` RULES!
            Skype rhcp011235 | Cell Phone 212.812.9043 | Email [email protected]

            Comment

            • POed-poster
              Confirmed User
              • Feb 2005
              • 1588

              #7
              Just found some perfect freeware

              TexFinderX

              BBEdit is a great tool but it is not free. If I was looking for an editor, that would be one thing, but I would only ever use it for search and replace purposes.
              If you have a music site that sells digital downloads, please contact me.

              Comment

              • poornpig
                Confirmed User
                • Sep 2007
                • 131

                #8
                Originally posted by POed-poster
                Anyone know where I can get a mac-based program that will allow me to mass edit an identical string of characters over hundreds of pages and directories?
                Use the power of sed and awk. these are preinstalled on every Mac Os.

                E.g. You have a directory called "$DIRECTORY", which is full of html files. in each of them you would like to substitute the sting "Example Title" to "My Title" then you could do this one liner in your terminal:

                cd $DIRECTORY; ls -1 *.html | while read line; do sed -e 's/Example Title/My Title' "$line" > "$line.tmp"; mv -v "$line.tmp" "$line";done

                This does substitute Example Title through My Title outputs it to filename.tmp and moves filename.tmp to filename.
                recip free directory | webmaster (on) sexyrails (in) com (use PGP)

                Comment

                Working...