/ Published in: Bash
Is there a command like cat in linux which can return a specified quantity of characters from a file?
- head -c 100 file # returns the first 100 bytes in the file
- tail -c 100 file # returns the last 100 bytes in the file
- dd count=5 bs=1 if=filename
You need to login to post a comment.