SyntaxFix
Write A Post
Hire A Developer
Questions
cat foo.txt | strings -n 8 > bar.txt
will do the job.