Joined June 2012
·

Ismael Luceno

Netmax do Brasil Software Ltda. EPP
·
Brazil
·
·
·

Posted to Shutdown all running Vagrant boxes over 1 year ago

More UNIX-ly variant:

vagrant global-status | awk '$3 == "running"{print $4}' | xargs -I '{}' sh -c 'cd "$1" && vagrant halt'

Wow, PowerShell is really crappier than I thought... you could do it with a singe line using UnxUtils...

find -regex '.*\.\(cs\|js\|c\|html\|csproject\|sln\)' -exec sed -i 's/[^\r]$/&\r/' +

Achievements
81 Karma
0 Total ProTip Views