is sed -e 'script' -e 'script' the same as sed script;script ?Moreover do those multiple commands operate during one scan of the file? Or is it the case that the more scripts you put the more scans/passes of the file it will do? (one per script)Since sed is a scripting language, I am leaning towards the multiple pass theory... For example if you have sed script;script this is like having a sed script like this:scriptscriptSo it would be natural to assume that everything happends procedurally.But how about -e 'script' -e 'script'? And most importantly, is there a way to tell sed to only perform one pass, therefore saving valuable CPU cycles on large files? And if sed cannot do that, is there another way in doing something like this ? (Maybe awk is more suitable for example? ect)Thank you for taking the time to help
Question regarding sed's multiple commands
sed