Skip to content

Text processing

hardpar 1 command

Rename a severity, in the file

Every ERROR in app.log should read FAILURE afterwards — in the file, not just on screen. Check it before you commit to it.

Goal

0 / 1 commands

Change every ERROR in app.log to FAILURE, editing the file itself rather than printing the result.

  • ·Uses sed
$

The files in the sandbox, with their modes, link counts and sizes
ModeLinksSizeName
-rw-r--r--1795app.log
-rw-r--r--1389app.log.1