bash trim binary output 1

bash trim binary output

sed '$ s/\xff*$//' file > file.out

Here is what the above code is Doing:
1. The first sed command is removing the first line of the file.
2. The second sed command is removing the last line of the file.
3. The third sed command is removing the last character of the file.

Similar Posts