for a in `tee q` { for i in {0..99} { [ `grep -c ^${a:0:i} q` = 1 ]&&echo ${a:0:i}&&break } }
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page