Just can't stay away
Joined: 2009/10/7 1:11 Last Login
: 10/27 15:47
From Odense
Group:
Registered Users
|
Thanks for all the input, I think I am getting a hang of it now.
Strange, though, that there is no way to send a tab character to a program, that could have been really useful.
The reason I am looking for this, is because I am looking for easy ways to replace strings in large sourcecode files with other strings. Now I am looking at sed the stream editor, and I think from using it a little and cross refering what I do on my pc, I think that sed has problems with the * character. I checked the DOS prefs, and "use asterisk in patterns" is turned off.
I'm trying to replace strings using something like this:
Original file: DC.B "string",10,0
Wanted result: .string "string" .byte 10,0
sed command: > sed "s/DC.B\t\"\([[:space:]0-9a-zA-Z]*\)\",\([01,]*\)/.string \"\1\"\n\t.byte \2/" myfile.asm >.log
Under cygwin it works, but on amiga it doesn't (in shell or sh). I was trying to look for the sources of sed on aminet, but it seems to be down... What to do??
|