$ echo 'a' | perl -lpe '$_++;' b [download]
In reply to Re^2: Increment Letter on a Command Line by graff in thread Increment Letter on a Command Line by rashley