On Mon, Apr 15, 2013 at 10:44 AM, sven falempin wrote:
> *-i*[*extension*]
>
> -i"\.sed"
>
> but wow, nice way to destroy file.
>
> oh , it is tmpfs related :-)
>
> On Mon, Apr 15, 2013 at 8:12 AM, Marc Espie wrote:
>
>> $ cat goodfilename
>> coincoin
>>
>> $ perl -pi -e 's/toto/tutu/' goodfile
*-i*[*extension*]
-i"\.sed"
but wow, nice way to destroy file.
On Mon, Apr 15, 2013 at 8:12 AM, Marc Espie wrote:
> $ cat goodfilename
> coincoin
>
> $ perl -pi -e 's/toto/tutu/' goodfilename
> works
>
> $ cp goodfilename /tmp
> $ perl -pi -e 's/toto/tutu/' /tmp/goodfilename
> Can't do inplac
$ cat goodfilename
coincoin
$ perl -pi -e 's/toto/tutu/' goodfilename
works
$ cp goodfilename /tmp
$ perl -pi -e 's/toto/tutu/' /tmp/goodfilename
Can't do inplace edit on goodfilename: File exists.
$ cat /tmp/goodfilename
cat: /tmp/goodfilename: No such file or directory.
ktrace shows a disturbi