Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I found

tcpdump -l -s0 -w - tcp dst port 80 | strings

on this article. So I want to try to use strings command. But command like

echo 'abc' | strings

does not work. Why? Thanks in advance.

I read the strings manual. But got no luck.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Read the manpage:

DESCRIPTION

For each file given, GNU strings prints the printable character sequences that are at least 4 characters long [...]

Note the 4...

To make it work:

echo abc |strings -n 3
share|improve this answer
    
= =! Thanks. I should read it more carefully... –  LouXiu Mar 19 '13 at 1:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.