i have been writting a script to setup a ldap directory i wanted to make it also set up samba as a PDC but have hit a snag with my scripting knowledge.
I am trying to get a SID number but i only want the number, i have managed to achieve this except it has a space in front of it is there a way i can remove spaces from the output ??
sudo net getlocalsid | awk -F: '{print $2}'
that returns what i want but with a space at the start, can anyone help me with something that will also remove the space ???
Bookmarks