/ Published in: Bash
Is there a command like cat in linux which can return a specified quantity of characters from a file?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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