Web Hosting Talk







View Full Version : need some linux command help


Digger
12-04-2004, 09:13 AM
have a txt file of dictionary words on my server.
need to extract only those with 5 letters or less...is it possible using some linux command like awk grep?

i tried grep but it doesnt work.

thanks
sam

Digger
12-04-2004, 09:56 AM
btw easy word is on one line

like

amazon
people
love
xxx
purple

.
.
.

brianoz
12-04-2004, 11:01 AM
grep -v ...... file

this returns all lines except those matching 6 or more characters.

Digger
12-04-2004, 11:36 AM
thanks.
it worked,
appreciate your help.