New Laptop

  • #26
221
0
use grep or locate then
 
  • #27
0rthodontist
Science Advisor
1,230
0
Grep is much slower than spotlight, and locate doesn't do everything spotlight does. At least spotlight can look inside some files, such as those with a .txt extension. But it doesn't seem to be able to search inside source code files meaningfully. Actually I just got a third-party patch that allows it to look inside python source files... I guess I can do this on a case by case basis.
 
Last edited:
  • #28
graphic7
Gold Member
450
2
Grep is much slower than spotlight, and locate doesn't do everything spotlight does. At least spotlight can look inside some files, such as those with a .txt extension. But it doesn't seem to be able to search inside source code files meaningfully. Actually I just got a third-party patch that allows it to look inside python source files... I guess I can do this on a case by case basis.
This is nonsense. Please increase your experience with the UNIX userland before making such, incorrect and sweeping generalizations.

$ find . -name "*.txt" -print | xargs grep <regex>

Very simple and very effective. No need for bloated, Objective-C nonsense.

Edit: Also, you should forget locate. It is not part of the SUSv3 specification, and is thus one of those silly Linuxisms that users tend to come to depend upon. Learn find, which is covered by various standards, and available on any system that remotely resembles UNIX, including Linux.
 
Last edited:
  • #29
graphic7
Gold Member
450
2
Linux will use just as much ram as osx, u are aware that osx is based on *nix? It just uses aqua as its windowing system...
This is doubtful, as Aqua stores images of each window in memory (or video memory if you have enough of it). Most X11 servers do not do this, but unfortunately, things like Mozilla and Firefox like to store pixmaps in the X11 server.
 
  • #30
0rthodontist
Science Advisor
1,230
0
This is nonsense. Please increase your experience with the UNIX userland before making such, incorrect and sweeping generalizations.

$ find . -name "*.txt" -print | xargs grep <regex>

Very simple and very effective. No need for bloated, Objective-C nonsense.

Edit: Also, you should forget locate. It is not part of the SUSv3 specification, and is thus one of those silly Linuxisms that users tend to come to depend upon. Learn find, which is covered by various standards, and available on any system that remotely resembles UNIX, including Linux.
I appreciate your info but "spotlight" is much faster than find, as it maintains its own index rather than going through every file.
 
  • #31
221
0
This is doubtful, as Aqua stores images of each window in memory (or video memory if you have enough of it). Most X11 servers do not do this, but unfortunately, things like Mozilla and Firefox like to store pixmaps in the X11 server.
Ohh I see Mr Unix is in the house. Welcome back :smile: Anyway Yes I guess you are right...

I think a full on install of KDE and Aqua would be about the same tho??
 

Related Threads on New Laptop

  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
18
Views
3K
  • Last Post
Replies
13
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
8
Views
7K
  • Last Post
Replies
8
Views
2K
Replies
11
Views
1K
Replies
7
Views
4K
Replies
6
Views
970
Replies
9
Views
1K
Top