When I run the following command:
dd if=/dev/sda of=output bs=512 count=1
In the middle of the output I see this text:
GRUB ^@Geom^@Hard Disk^@Read^@ Error^M
What does it mean?
I have a command that has a numeric output, but sometimes, because of an error over which I have no control whatsoever, the output value is below 100.
What I need is to read this output, and only continue if the output is greater than 100. The problem is that the "until loop" only reads the variable once.
I am trying to assign the output of a command to a variable without the command thinking that it is being piped. The reason for this is that the command in question gives unformatted text as output if it is being piped, but it gives color formatted text if it is being run from the terminal. I need to get this color formatted text.