sed -n '1,500p' logdump.log >cut_500.log
cat access.log | grep -c "somestring"
Hm. Recently i changed my dev OS from Ubuntu to MACOS. I installed ansible with:
brew install ansible
When i tried running my playbook.yml this was the error:
ERROR: Unable to find an inventory file, specify one with -i ?
Default dir of hosts is /usr/local/etc/ansible/hosts but no dirs at all from the brew side ;-(
So just create the dir with
mkdir -p /usr/local/etc/ansible/
and create a host file
with the content of your inventory. For example:
localhost ansible_connection=local [servers] foo.example.com bar.example.com [dbservers] one.example.com two.example.com three.example.com