Hello, I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file.
I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:
Code:
user~ $ write 'this is a test'
with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.