sed or greo or awk to match very very long lines

Posted by yael on Stack Overflow See other posts from Stack Overflow or by yael
Published on 2010-05-31T11:48:40Z Indexed on 2010/05/31 11:53 UTC
Read the original article Hit count: 175

Filed under:

more file

param1=" 1,deerfntjefnerjfntrjgntrjnvgrvgrtbvggfrjbntr*rfr4fv*frfftrjgtrignmtignmtyightygjn 2,3,4,5,6,7,8, rfcmckmfdkckemdio8u548384omxc,mor0ckofcmineucfhcbdjcnedjcnywedpeodl40fcrcmkedmrikmckffmcrffmrfrifmtrifmrifvysdfn drfr4fdr4fmedmifmitfmifrtfrfrfrfnurfnurnfrunfrufnrufnrufnrufnruf"**

#

need to match the content of param1 as sed -n "/$param1/p" file but because the line length (very long line) I cant match the line what’s the best way to match very long lines?

© Stack Overflow or respective owner

Related posts about sed