I'm making a script and every time something is done I would like to write into my custom .log file. How do I do that?
And in the end.. I'd just like to read it with Bash,.. do I just use cat?
I am creating an app where I need to read in a file, possibly make changes and write back. At the moment I have the initial file in assets and it reads in fine, I have just found out however that you cannot write to that location.
Is there anyway in linux (I don't care which distribution or flavor) to have a dynamic file system with read/write hooks? For example I would like to mount a dynamic file system at /dynamic and whenever I try to read/write to a non-existing location a bash script or program is run.
I am trying to add a line to a bash script that does a bunch of other stuff and what I want it to do is write to the end of a line in another file. I have a file with a line of IP addresses which is all one line. This script that I have written asks for user input and one of those things it asks for is an IP address.