Hi,
I'm trying to use
sed to process some files on Macs running OSX. Anyone know anything about Macs and
sed?
Here's the problem
sed 's/^/ /g' test_file > endfile
(there are spaces betwen the second and third /, but the forum software compresses them)
This should put spaces at the beginning of every line (I'm fairly sure, tho' not positive about this). But it's only putting spaces at the beginning of the first line of a file.
Any thoughts? I've already had problems with Mac's idea of
sed and the \n newline character (Mac's
sed doesn't seem to recognize it). And downloading
GNU's
sed onto all the machines here (aobut 200) isn't an option, but we've got a lot of files to process.
Any help would be appreciated.
Best wishes,
Laurel
