in Vim:
{range}!command will pipe content from vim to another command and back. Examples:
Sort contents of lines in place
:'<,'>!sort
Replace lines with calculated results (ie, line contains "2+3*5" and gets replaced with "17")
:'<,'>!bc
{range}!command will pipe content from vim to another command and back. Examples:
Sort contents of lines in place
:'<,'>!sort
Replace lines with calculated results (ie, line contains "2+3*5" and gets replaced with "17")
:'<,'>!bc