Remove final newline
We can use head
with the -c
or --bytes
flag to remove a number of bytes from the end.
So, if we want to remove a single newline from the input (or any character for that matter):
Last updated
We can use head
with the -c
or --bytes
flag to remove a number of bytes from the end.
So, if we want to remove a single newline from the input (or any character for that matter):
Last updated