[PLUG] Translating ^M to \n

Rich Shepard rshepard at appl-ecosys.com
Tue Aug 13 15:08:31 UTC 2019


On Mon, 12 Aug 2019, Rodney W. Grimes wrote:

> dd if=oldfile bs=1 iseek=1 | tr '\r' '\n' >newfile

Rod,

The dd version here (from GNU coreutils 8.25, 2016) does not have an iseek
option, but it does have a seek option: seek=N skip N obs-sized blocks at
start of output.

However, when I run that:

dd: 'standard output': cannot seek: Illegal seek
0+0 records in
0+0 records out
0 bytes copied, 7.0422e-05 s, 0.0 kB/s

Do I need that option?

Thanks,

Rich



More information about the PLUG mailing list