Dear Tsjerk Thanks for your quick reply. I used awk '!($1%16)' file.xvg. It is very good. Since my xvg file is large. I want to have output in new xvg file (new.xvg) instead of screen. How to do this?