Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    or, if there are not millions of such files, sed -i -e 1,327d *.dat Commented Jul 13, 2017 at 19:27
  • add the regular-file clause in find to make it more accurate and sed can handle more than one file: find . -type f -name \*.dat -exec sed -si -e 1,327d {} + Commented Jul 14, 2017 at 7:33