example: i created one file in ~/ named text (so ~/text).
Q: How can i cut first 250 chars from ~/text and display them in terminal using
cut?
tnx
example: i created one file in ~/ named text (so ~/text).
Q: How can i cut first 250 chars from ~/text and display them in terminal using
cut?
tnx
I don't really understand your question. You want to create a program that does this? If yes you can use "fread". You can find more information here :
http://www.cplusplus.com/reference/c...dio/fread.html
If you want to use bash for this you can use read and then echo.
Hope this helps.
Best wishes,
NoReflex
Last edited by ghostdog74; September 19th, 2008 at 12:55 PM.
Bookmarks