Comment Comment by kritixilithos Actually the following is even shorter /A/{N;d;} So all together this gives the following ls|sed '/A/{N;d;}' parent kritixilithos 7 years ago