w -c '$_=shift;length if/a/&&/b/&&/c/&&/d/&&/e/&&/f/'|sort -n -k 3|head -1