gggqG for the whole file.
gql for the cuttent
This script takes standard input and escapes spaces and other characters
%q. Especially useful for
find as in
find ./ | escape
#!/bin/bash IFS=$'\n' while read line; do printf "%q\n" $line done
ldapsearchWrapped Lines for Proper Scripting
| perl -p00e 's/\r?\n //g'
I have found this infinitely useful piping ldapsearch queries into to be further processed down the pipeline.