sed or grep or awk to match very very long lines
Posted
by yael
on Super User
See other posts from Super User
or by yael
Published on 2010-05-31T12:27:20Z
Indexed on
2010/05/31
12:34 UTC
Read the original article
Hit count: 206
sed
more file
param1=" 1,deerfntjefnerjfntrjgntrjnvgrvgrtbvggfrjbntr*rfr4fv*frfftrjgtrignmtignmtyightygjn 2,3,4,5,6,7,8,
rfcmckmfdkckemdio8u548384omxc,mor0ckofcmineucfhcbdjcnedjcnywedpeodl40fcrcmkedmrikmckffmcrffmrfrifmtrifmrifvysdfn"
need to match the content of $param1 in the file
but its not work for example
sed -n "/$param1/p" file
or any grep $param1 file etc...
any other solutions? maybe with perl?
© Super User or respective owner