1,215 reputation
26
bio website
location The Netherlands
age
visits member for 1 year
seen 11 mins 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
28
comment How to get a previous date using a reference to a file with the date command?
@slm, good comment up there. You should use $() command substitution all the time since it offers more flexibility in nesting commands and avoiding entering sometimes unnecessary " " double quotes or ' ' single quotes
Aug
27
comment Scope of variables when calling function from find
Sure, You've defined a global variable but why since the variable is going to run/be part of the function itself.
Aug
27
answered Scope of variables when calling function from find
Aug
27
revised Using sed to delete everything between two words?
deleted 5 characters in body
Aug
27
revised Using sed to delete everything between two words?
added 9 characters in body
Aug
27
revised Using sed to delete everything between two words?
added 9 characters in body
Aug
27
answered Using sed to delete everything between two words?
Aug
27
comment Copying files from one machine to another without asking for password
You need to configure public/private key authentication for your host/client.
Aug
27
answered Could not create lock at /var/run/yum.pid
Aug
26
comment Command substitution in for loop not working
@slm, I have to disagree on ls use in the for loop context.ls is purely designed for the human eye. Different operating systems parse ls output differently.
Aug
26
comment Command substitution in for loop not working
@Mat that doesn't explain how you should do it within a for loop.
Aug
26
revised Command substitution in for loop not working
added 53 characters in body
Aug
26
comment Command substitution in for loop not working
because you have not enabled extglob See above.
Aug
26
answered Command substitution in for loop not working
Aug
26
comment Group+rx permission only in directories using ACL?
You need to use umask See for more cyberciti.biz/tips/…
Aug
24
comment Print Matching line and nth line from the matched line
@slm Thanks for improving and providing the complete answer!
Aug
24
answered Print Matching line and nth line from the matched line
Aug
24
comment Print Matching line and nth line from the matched line
you are saying "I am trying to print the matched line and the 4th line from the matched line". This grep -A 4 "pattern" file | sed -n '4p' does do exactly what you want, unless I'm misunderstanding you
Aug
24
comment Print Matching line and nth line from the matched line
Use egrep "pattern" -A4
Aug
23
comment tar: short read
@Mercer because that is not a .gz file. You are ignoring things that were provided to you to test. What tar version are you using? As earlier mentioned tar --version , then try to tar a file yourself and extract it. See my first comment. Update your post with tests you performed.