2,029 reputation
410
bio website
location The Netherlands
age
visits member for 1 year, 5 months
seen 1 hour ago

Currently working as system administrator at Bizztravel B.V.. I've earned a bachelor degree in Computer Sciences. Since computing in general is my passion, I try to keep up with the latest development in this field. I'm active on irc.freenode.org and try to contribute to the open source community as much as I can.


Aug
27
comment Suppressing “sudo: sorry, a password is required to run sudo”
sudo -u other-user -n true 2>/dev/null sends standard error to nothing, null binary. A similar situation which I've described here: serverfault.com/questions/550107/…
Aug
26
comment find file, copy but with different name
If we used "$1" as you suggested, then we could use "${1%%[0-9]*}" as being the positional parameter without defining a variable.
Aug
26
comment find file, copy but with different name
@G-Man it indeed is 'explanatory'. I stand corrected. find when no path specified, assumes the $(PWD). So since I was not sure where OP's files were located I assumed the current dir. Then of course the command changes slightly. names${1##*/} would no longer be necessary. Just a way to show how PE (Parameter Expansion) works
Aug
26
revised find file, copy but with different name
First version is to remove extension.
Aug
26
answered find file, copy but with different name
Aug
23
answered Script to ssh and run a command doesn't work
Aug
22
comment ssh-keygen -y error: load failed
Let us continue this discussion in chat.
Aug
22
comment ssh-keygen -y error: load failed
@TheGoodUser you really need to provide more information about the PROIVA file. How did you generate it?.
Aug
22
comment ssh-keygen -y error: load failed
Now read the answer above. and see if you get similar results
Aug
22
comment ssh-keygen -y error: load failed
Can you run: openssl base64 -in /root/Desktop/PROIVA -out /root/Desktop/Proiva.der and update your question with the info.
Aug
22
revised ssh-keygen -y error: load failed
Adding debug info
Aug
22
answered ssh-keygen -y error: load failed
Aug
22
comment ssh-keygen -y error: load failed
@TheGoodUser It seems your key is converted into DER format. openssl rsa -in /root/Desktop/PROIVA -inform DER -out /root/Desktop/PROIVA -outform PEM Then try to ssh-keygen command again.
Aug
22
comment How can I “merge” patterns in a single line?
@glennjackman ah right! Thanks for the hint. You are free to modify the answer though. I missed that bit!
Aug
22
comment ssh-keygen -y error: load failed
Can you add a -v to ssh-keygen command? And what does file /root/Desktop/PROIVA return? Ad some more debugging info. No need for Images though
Aug
22
answered How can I “merge” patterns in a single line?
Aug
22
comment How can I “merge” patterns in a single line?
@Networker by not using backticks but $() instead.. and using printf printf '%s\n' "$x"
Aug
22
comment How can I “merge” patterns in a single line?
Use printf %s\\n pattern1 pattern2 | sed '$!N;s/\n/ /'
Aug
22
revised Obtain values of a section of a file
Correcting typos
Aug
22
suggested approved edit on Obtain values of a section of a file