Re: Easiest Way in Perl to check Whether a Disk is Mounted

2024-06-05 Thread Will Mengarini via beginners
* Martin McCormick [24-06/01=Sa 09:25 -0500]: > [...] determine whether a file system is mounted such as > $ mount |grep horseradish > [...] I think perl -e 'print grep m[/horseradish],`mount`' is hard to beat for its simplicity. Note I'm using Perl's built-in grep; there's no need to run the

Re: change one line in a large fine

2022-11-20 Thread Will Mengarini via beginners
* linux...@gmx.net [22-11/20=Su 09:58 +0100]: > I have a large file which has millions of lines. They are text > only lines. If I have to change one line in the file, what's the > efficient way? I don't want to slurp the whole file into memory, > change that line and write the full content