>>>>> "Robert" == Robert Floyd <[EMAIL PROTECTED]> writes:
Robert> Does Linux use the ***te "filename"*** command or something
Robert> similar when one wants to do some quick editing on an ascii
Robert> file? The Solaris environment allows this command, just
Robert> wondering if Linux allows the same?
Personally, I use Emacs, "emacs textfile", but while it's very
powerful, it's a bit slow on some machines (with <16Mb RAM). A lot of
other people prefer vi(1). It's an issue of personal preference.
There are many other editors installed on Red Hat sysytems too; "jed"
for example.
Robert> Also, is there a way to perform a comprehensive search for
Robert> a particular text string throughout a directory structure?
Robert> Sort of like a global grep command....as opposed to using
Robert> grep on one file at a time...
Personally I use "M-x grep-find" under Emacs, which makes this
relatively easy. Otherwise you can have some incantation using
find(1), something like this:-
find . -type f -print | xargs grep -n -e string-to-find | less
If you only wanted to search C files and not object files for example,
you might use this instead:-
find . -name \*.c -type f -print | xargs grep -n -e string-to-find | less
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.