I have a log.txt file with this content:
systemd[1]: Starting dracut cmdline hook...\r\n[ 8.759274] systemd[1]:
When I do cat log.txt output:
systemd[1]: Starting dracut cmdline hook...\r\n[ 8.759274] systemd[1]:
The expected output is 2 lines ( \r\n to replace with a visible new line):
systemd[1]: Starting dracut cmdline hook... [ 8.759274] systemd[1]:
How to do this on a bash terminal?
source share