[gobolinux-users] Rootless on Ubuntu 6.10

Lucas C. Villa Real lucasvr at gobolinux.org
Fri Feb 16 12:59:46 UTC 2007


On 2/16/07, Lucas C. Villa Real <lucasvr at gobolinux.org> wrote:
> On 2/16/07, Lucas C. Villa Real <lucasvr at gobolinux.org> wrote:
> > for i in `find . -type f`; do cat $i | sed 's,^#!/bin/sh,#!/bin/bash'
> > > x && mv x $i; done
>
> Forgot escapes (\):
>
> for i in `find . -type f`; do cat $i | sed
> 's,^#\!/bin/sh,#\!/bin/bash' > x && mv x $i; done

And obviously, forgot ',g'. This time the script has been tested :-)

for i in `find . -type f`; do cat $i | sed
's,^#\!/bin/sh,#\!/bin/bash,g' > x && mv x $i; done

-- 
Lucas
powered by /dev/dsp


More information about the gobolinux-users mailing list