I'm using the command grep
in Linux to get a specific information from my output file, but I don't know why does not copy to the file.
When I use the command like that, it works
udevadm monitor --env | grep "ACTION"
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
ACTION=remove
But, when I use the command like this, it does not copy to the "output.txt"
udevadm monitor --env | grep "ACTION" >> output.txt