Thursday, October 29, 2009

Apache Directory Studio

Thanks to Pedro I've been noticed about Apache Directory Studio, which is a subset of a most important project: the Apache Directory and LDAP under the Apache Project.

Thanks to Angel also, I've been having a look on that tool. If you want to search, edit and see an LDAP without learn a line about command line, or using ldapmodify plus ldiff files to create or modify entries you should use this tool. Dammed easy.

And you're in IT probably you have use Eclipse at least once so it would be easy for you since its LDAP editor is a plugin under your Eclipse. You just need to follow this instruccions to get in use as a Eclipse plugin.

Thanks to Pedro & Angel and ... great soft again from Apache.

Labels: ,

Monday, October 05, 2009

How to know my own PID in a bash shellscript

I was sure there's a way to know easily what is the PID in a bash shellscript, without doing anything complicated -such a ps wwaux | grep something- and then I've found this quick ref. about less easily guessed commands and codes in Unix shell

By the way, inside a shellscript, the PID of that shellscript is stored in the $$ environment variable, for instance, you may type this on your terminal:
echo "My pid is $$"
and you'll get something like:
My pid is 14467

Labels: ,

Friday, October 02, 2009

Delete a line with sed

I wrote about how append a new line using sed. Now let me copy here how to erase or delete a line using sed if that line has a pattern.

If you want to erase, for instance a line that starts with # character, you should use something like:
sed -e '/^#/d'

If your text comes from a command you may use a pipe by doing something like:
cat /etc/services | sed -e '/^#/d'
or if you want to use on a certain file:
sed -e '/^#/d' fileName.ext
Hope it helps someone...

Labels: ,