Return to Snippet

Revision: 47595
at June 11, 2011 00:03 by lamebollock


Initial Code
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

Initial URL
http://stackoverflow.com/questions/218912/linux-command-like-cat-to-read-a-specified-quantity-of-characters

Initial Description
Is there a command like cat in linux which can return a specified quantity of characters from a file?

Initial Title
Linux command (like cat) to read a specified quantity of characters

Initial Tags
Bash

Initial Language
Bash