GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Mass edit software for OSX (https://gfy.com/showthread.php?t=845820)

POed-poster 08-04-2008 07:08 PM

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?

gleem 08-04-2008 07:16 PM

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

POed-poster 08-05-2008 08:25 AM

Any other suggestions?

rhcp011235 08-05-2008 08:52 AM

Try textwrangler

JasonB 08-05-2008 09:19 AM

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

rhcp011235 08-05-2008 09:34 AM

Learn bash for the term. for i in `ls -1` RULES!

POed-poster 08-06-2008 11:00 PM

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.

poornpig 08-07-2008 01:48 AM

Quote:

Originally Posted by POed-poster (Post 14561470)
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.


All times are GMT -7. The time now is 06:45 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123