Random Strings

Hello,

Is there a way to remove random strings from a file that are not words?

example

fsdfasf
adsfab
hhfadsk

Thanks
faithless1Asked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
perl -pe 'BEGIN{local @ARGV=("dictionaryfile"); chomp,++$word{$_} while <>} s/(\S+)/$word{$1}&&$1/eg' randomfile
0
 
ozoCommented:
Do you have a dictionary of strings that are considered words?
0
 
faithless1Author Commented:
Yes I do.
0
All Courses

From novice to tech pro — start learning today.