7

Oneliner ---split string to character by piping shell output to perl

view full story
linux-howto

http://www.unix.com – Hello, I was trying to split a string to characters by perl oneliner. Code: echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe: Code: echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq  -ic Code:       8        1 T       1 a       1 b       1 c       1 d       3 e       1 f       1 g       2 h     &nb (HowTos)