1,818 reputation
29
bio website
location The Netherlands
age
visits member for 1 year, 3 months
seen 12 hours 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.


Jul
29
comment Move every file that is not a directory
@Scott I had no idea about the -t flag. I also explained in the answer that the + is faster but not all find versions support it. So the above code is pretty much compatible with any find or shell that is used.
Jul
29
comment Move every file that is not a directory
@Questionmark I've updated the answer and did add some explanation. Also, it's worth visiting mywiki.wooledge.org/UsingFind
Jul
29
revised Move every file that is not a directory
added 239 characters in body
Jul
29
answered Move every file that is not a directory
Jul
26
answered Count files in a directory by extension
Jul
25
revised Printing selective fields following 1st column instructions
some braces removed and 'else' is not needed
Jul
25
suggested suggested edit on Printing selective fields following 1st column instructions
Jul
24
comment Shell scripts for the database logs
First of all, find filename | .. is wrong! Secondly, you can use grep -iE '(pid=25997|ERROR|FATAL)' filename to group everything in one command. So can you explain why you are using find in this case?
Jul
24
answered Move iptables rule (w/o removing and adding)
Jul
24
revised Find the exact string with grep
added 177 characters in body
Jul
24
answered Find the exact string with grep
Jul
24
answered How to read a text file line by line which is not constant in shell scripting
Jul
24
comment Why is `tac file | grep foo' (piping) faster than `grep foo < <(tac file)' (process substitution)?
I think process substitution < <(command) is preferable in regard to the pipe |. As explained by gnouc, | requires each command to run in a subshell while process substitution leaves the pipe open and feeds the command from the stdout. There is more here: wiki.bash-hackers.org/syntax/expansion/proc_subst and mywiki.wooledge.org/ProcessSubstitution
Jul
24
comment How to prevent prompt that ask to restart services when installing libpq-dev
I was suggesting to use -y but seems it doesn't change much. see man apt-get | less +/--force-yes
Jul
23
comment Random named file in home directory, possibly hacked?
That filename seems to be a base64 encoded string. You probably tried something with base64 and forgot about it. How the file got filled with those lines remains a mistery.
Jul
23
answered Copy a folder and its content to all Nginx vhosts host
Jul
23
comment How can I have my .bashrc only invoke TMUX if it exists on my system?
@polym which(1) is an external program used to search PATH for an executable. It behaves differently on different systems and you can't rely on a useful exit code; use (from most to least portable) ''command -v'' or ''type -P'' (to find the path) or ''hash'' (to check) instead. See mywiki.wooledge.org/BashFAQ/081
Jul
23
comment getting last logins since $time
Well I have no idea what last that is. It seems to be a fork or something. I've looked at mine and also here manpages.courier-mta.org/htmlman1/last.1.html Both discuss the -s flag.
Jul
23
comment getting last logins since $time
@Kiksy the -t, --until time option is untill the specified time not -s, --since time which is what you want imo. Can you pastebin man last somewhere?
Jul
23
comment getting last logins since $time
Can you update the question and show last -V Also, have you looked at the -s flag? What system are you running?