This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, 19 Feb 2004, Brian Dessent wrote:What on Earth are you talking about? What inability? WFM (see below). ... $ perl -i -pe 's/blah/stuff/g' sometext $ ls sometext sometext.bak
It didn't do the editing "inline", it created a new file and renamed the old one ".bak". In other words, on Cygwin "-i" is really "-i.bak". If you try the above sequence on linux you don't get a .bak file and the changes are truly done in-place. I assume this relates to differences in filesystem semantics.
deo@paltus:~$ echo aaa >xxx deo@paltus:~$ ls -i xxx 408096 xxx deo@paltus:~$ perl -i -pe 's/aaa/bbbb/' xxx deo@paltus:~$ ls -i xxx 408074 xxx deo@paltus:~$ cat xxx bbbb
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |