![]() Ya veremos, todos los días se aprende algo nuevo. Al final me parece complicado, quizás combinándolo con otros comandos al realizar tareas de búsqueda complejas (como en logs de servidores) dentro de scrips de bash le pueda hayar un lugar. Le encuentro utilidad en búsquedas, obviamente, pero nada mas allá de eso. (variable names, for instance) from one file, and then grep the results in other files, you'd need to use -color=NEVER or -color=AUTO on the first instance. However, if you do a 'for' loop to extract s.t. In most cases, such piping shouldn't matter. If you pipe the output of grep to grep, he escape characters will mess up the second grep. I only learned it was possible after executing grep commands on my web host, which does happen to have it set to "always" by default. Not sure why it's not enabled by default, it's so handy. My grep doesn't seem to understand -color, I get the help screen and it is not in the man page either.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |