Is there a command like cat
in linux which can return a specified quantity of characters from a file?
e.g., I have a text file like:
Hello world
this is the second line
this is the third line
And I want something that would return the first 5 characters, which would be "hello".
thanks