Just do it and make it part of your default install. Solaris sysadmins often insist on being different from Linux world but there's really no need to. If you specify a directory name to search and you want the files in that directory to be searched, enter the command. This adds an '/I' option under Windows and a '-i' option under Linux. Personally I would make the above (potentially less the dev tools) part of my company's default install for new servers / zones. To reset the default of case insenstive search, enter the command. Pkg://solaris/developer/build/automake-110 You can use this one liner to get a list of all files in this folder and sub folders, containing the phrase 'The phrase I am looking for'. The list of packages that you should consider always to have available for any zone are these:Īnd if you use the host for development/build purpose you might want to add: So, in this case, grep -i -R 'your phrase' directory > /path/to/your/textfile - also consider adding -l to the grep arguments if you just want a list of the files (as per Richard Holloway. IFS, the packaging system on Solaris 11, makes your life a lot easier so you really should be moving to Solaris 11 (lots of other reasons as well). The GNU tools are typically installed by default but do not all of them get propagated into local zones. If you are on Solaris 11 life is a lot simpler. Make it part of your JumpStart (or whatever you use) for new servers in your organisation ! Personally I would make it a habbit always to install the contents of this disk or at least the most important GNU parts. With this option one can search the current directory and and all levels of subdirectories by passing the -r or -R to the grep command. This used to be distributed by Sun but it now lives here. Pass the -r option to grep command to search recursively through an entire directory tree. If you are on Solaris 10 you should get the Solaris 10 Companion Disk. If you simply want your Solaris to have the typical GNU tools available then do as follows: I wouldn't go about downloading source code from various places on the Internet and then building yourself. Personally I do not miss the "-r" flag because you can do the same with a combination of find and grep but this reminds that having the GNU tools available on your Solaris box is what I would consider best practice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |