Re: [PLUG] sed substitution command doesn't [RESOLVED]

2020-03-31 Thread Rich Shepard
On Mon, 30 Mar 2020, Rich Shepard wrote: What have I done wrong? Dick's use of LO's calc pointed to what I did wrong: the field is seen as a string by sed, awk, and emacs so it does not sort as an integer. Mea culpa! Here LO-6.2.8 is installed but it's search-and-replace on that column did

Re: [PLUG] sed substitution command doesn't

2020-03-30 Thread Rich Shepard
On Tue, 31 Mar 2020, J. Hart wrote: if you want to change the file in place, you want this: sed -i 's/SHE-3/21/' sample.dat Argh-h-h! I totally forgot that. Thank you. Regards, Rich ___ PLUG mailing list PLUG@pdxlinux.org

Re: [PLUG] sed substitution command doesn't

2020-03-30 Thread J. Hart
if you want to change the file in place, you want this: sed -i 's/SHE-3/21/' sample.dat On 03/31/2020 07:38 AM, Rich Shepard wrote: sed 's/SHE-3/21/' sample.dat ___ PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug

[PLUG] sed substitution command doesn't

2020-03-30 Thread Rich Shepard
sample.dat file content: '1220',SHE-3,'2006-06-01','Insecta','Coleoptera','Dytiscidae''Stictotarsus' '1174',SHE-3,'2006-06-01','Insecta','Diptera','Simulidae''Prosimulium' '1175',SHE-3,'2006-06-01','Insecta','Diptera','Simulidae''Simuliae'