General questions...

On Mon, 30 Apr 2007 07:11:01 -0700
Alan Ianson wrote:

> On Monday 30 April 2007 06:57, Steven Maddox (Architect) wrote:
> > Lo
> >
> > I've a few burning needs, so if anyone knows the answers - let me know! :D
> >
> > 1) I need a graphical way of searching text files for a string - and
> > getting it to replace it (makes for easy re-configuring of files after a
> > path change)
>
> Most editors have a search & replace function. kedit's (kde) search & replace
> funtion can be activated with R. Gedit might be a good candidate for
> XFCE but I'm not sure since I have never tried it.

The 'official' Xfce text editor is mousepad, which has standard search
and replace functionality (Menu -> Search -> Replace - default hotkey
is ctrl-h).

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

--

No votes yet

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

General questions...



c) I know loads of text editors can do multi-file find/replace - but I
want to do this on a massive scale, it would mean opening up every text

file on the file system! - i.e. I want to -on mass- rename something
unique in all configuration files mentioning it


Don't you like CLI instead a GUI app? a single sed command line will do the job no matter how massive it is.



f) on a bizarre connected note, I know that Debian is *rock solid*
stable - but when doing an 'apt-get upgrade' I haven't noticed a since

new thing!  is this normal? has theres really been nothing new since the
release! - my sources.list is fine btw


Yes it's "rock solid" normal.

cheers
raffaele


 

General questions...

Steven Maddox (Architect) wrote:
> c) I know loads of text editors can do multi-file find/replace - but I
> want to do this on a massive scale, it would mean opening up every
> text file on the file system! - i.e. I want to -on mass- rename
> something unique in all configuration files mentioning it
Since you like GUI KFileReplace is the thing you are looking for. I use
it sometimes since it is integrated in Quanta+

regards
Mitja

--

General questions...

On Wed, May 02, 2007 at 08:54:38AM +0100, Steven Maddox (Architect) wrote:
> Hi folks,
>
> Thanx for your answers... heres some clarifications...
>
> a) I meant to say Debian XFCE! not Ubuntu XFCE (sorry :D)
>
> b) I have already replaced mousepad for MadEdit (v.nice editor in my
> opinion)
>
> c) I know loads of text editors can do multi-file find/replace - but I
> want to do this on a massive scale, it would mean opening up every text
> file on the file system! - i.e. I want to -on mass- rename something
> unique in all configuration files mentioning it

On the command line it is easy:
$ find somedirectory -print0 | xargs -0 perl -pi -e 's/oldtext/newtext/g'

Adjust the find(1) command to locate the right files first before
you pipe it through xargs - massive-scale search/replace could mean
massive-scale mistakes ...

If you want a GUI, then I don't know... (and don't really care :-| )

> f) on a bizarre connected note, I know that Debian is *rock solid*
> stable - but when doing an 'apt-get upgrade' I haven't noticed a since
> new thing! is this normal? has theres really been nothing new since the
> release! - my sources.list is fine btw

Yes: the stable distribution should only receive security updates:
http://www.debian.org/security

PS: Please don't top-post...

--
Karl E. Jorgensen
http://www.jorgensen.org.uk/
http://karl.jorgensen.com
==== Today's fortune:
No two persons ever read the same book.
-- Edmund Wilson

General questions...

Steven Maddox writes:
> I want to do this on a massive scale, it would mean opening up every text
> file on the file system! - i.e. I want to -on mass- rename something
> unique in all configuration files mentioning it

As others have mentioned this is exactly the sort of problem sed was
invented to solve, but _why_ do you want to do this? There may be a better
way of reaching your goal.
--
John Hasler

--

General questions...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/02/07 02:54, Steven Maddox (Architect) wrote:
[snip]
> e) I was after some kind of tray icon auto-updater thingy for the XFCE
> Debian to tell me of new updates to Debian 4.0, this is a server however
> (I like GUI's don't sue me) so it would be nice if it just updated
> itself without asking

You want the software on a production server to be automatically and
blindly updated without the SysAdmin to first eye-ball it in order
to make sure that aptitude isn't going to accidentally remove a
critical set of packages?

- --
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGOIzAS9HxQb37XmcRAnw5AJ9taQ3asNYmhEYUddP5jpLRMSDBngCgorZr
xPfLXej0aDEKZecofb7v1Wo=
=9+IH
-----END PGP SIGNATURE-----

--

General questions...

On Wed, May 02, 2007 at 08:54:38AM +0100, Steven Maddox (Architect) wrote:

> b) I have already replaced mousepad for MadEdit (v.nice editor in my
> opinion)

Sounds interesting, but did you compile from source? It's not in Debian
repos (I'm asking because I'm interested in trying a new editor).

> c) I know loads of text editors can do multi-file find/replace - but I
> want to do this on a massive scale, it would mean opening up every text
> file on the file system! - i.e. I want to -on mass- rename something
> unique in all configuration files mentioning it

Why do you think a text editor can't handle that? If you want highest
speed I think sed is the best.

> e) I was after some kind of tray icon auto-updater thingy for the XFCE
> Debian to tell me of new updates to Debian 4.0, this is a server however
> (I like GUI's don't sue me) so it would be nice if it just updated
> itself without asking

cron-apt can do that, but beware ... I would rather set it up to
download all updates (default?) and send a mail about it.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Syndicate content