Wednesday, January 22, 2020

Extract from x to y lines from a file in Linux

$X=5
$Y=10
sed -n -e "$X,$Y p" -e "$Y q" FILE_NAME

No comments :

// Below script tag for SyntaxHighLighter