$ruby -n -e 'printf "%d %s", ($.+1)/2, $_' < any.txt