-1

I have a file called MemoryReport.txt .

Somewhere in the middle of each line, it says Limit:.

I would like for a script to copy only lines that says Limit:1 and exclude all others and print to a output text called LowLimit.txt

  • Should that include lines that contain e.g. Limit:10 or MaxLimit:1? (Limit:1 is a substring) – Kusalananda Feb 22 at 21:57
  • This should include Limit:1* so any number following 1 should also be captured. – Ibrahim A Feb 26 at 13:29
0

Here is how to do it, I figured it out.

grep "Limit:1" MemoryReport.txt > LowLimit.txt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.