1,265 reputation
26
bio website
location The Netherlands
age
visits member for 1 year
seen 17 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.


1d
comment two if conditions in for loop bash scripting
Let us continue this discussion in chat.
1d
comment two if conditions in for loop bash scripting
@IvanPetrov see update.
1d
revised two if conditions in for loop bash scripting
added 442 characters in body
1d
comment two if conditions in for loop bash scripting
@IvanPetrov see my updated answer. You can put hosts in an array variable and then read from the array just like you'd read from a file.
1d
revised two if conditions in for loop bash scripting
added 63 characters in body
1d
comment two if conditions in for loop bash scripting
@IvanPetrov What do you mean with a second file? You mean have hosts in two seperate files or..?
1d
revised two if conditions in for loop bash scripting
substitute echo for printf
1d
answered two if conditions in for loop bash scripting
1d
comment Find newest file. Multiple Filetype restrictions
@Wilf scroll just a bit down on this site: mywiki.wooledge.org/UsingFind and you'll find the answer.
1d
comment Find newest file. Multiple Filetype restrictions
@user2815780 'Still no output' is not enough. Maybe you need to increase -mtime -100 to search for latest 100 dasys
1d
comment Find newest file. Multiple Filetype restrictions
@Wilf you need \( -iname '*.mp3 -o -iname '*.jpg' \) otherwise it will match one or the other.
1d
suggested suggested edit on Find newest file. Multiple Filetype restrictions
1d
comment Find newest file. Multiple Filetype restrictions
@user2815780 You can play with -mtime -1 by changing the modification time. For example -mtime -10 wich will search for mp3 or jpg files which are created 10 days from now and ofcourse you can set |head -n4 or whatever you want at the end
1d
answered Find newest file. Multiple Filetype restrictions
1d
comment Find newest file. Multiple Filetype restrictions
Check this: mywiki.wooledge.org/BashFAQ/099?highlight=%28oldest%29
1d
comment ssh public key copying
@user3523605 see my updated answer
1d
revised ssh public key copying
added arguments to be passed
1d
comment Debian file's permissions for secondary's group of user
@Flo-Schield-Bobby So that explains. group needs also rwx on website directory. You can grant access to the ftp user using setfacl -m u:my-ftp-user:rwx /var/www/website No need for other changes
1d
comment Debian file's permissions for secondary's group of user
What is the group that owns /var/www/website ?
2d
comment ssh public key copying
You can use password as an argument and pass it to the filename