Create string with incremental number


To create a string with an incrementing number up to 1000 using bash.

Run the below.

seq -s "$(echo -e '\ntest\n')" 1000 > output.txt
Advertisements

Issue starting mongodb


If you get the below error when starting mongodb

ERROR: child process failed, exited with error number 100

Try amending the mongod conf in /etc/mongo.conf by adding the below

smallfiles = true