85
So kindly let us know your complete requirement so that we can help you.
EDIT: Seems you have modified the post now. If you want to take the complete line into a variable then I don't think that there is a need of using cut
command there. If you want to work on lines of a file you can use while loop it will read file line by line and you can perform your operation as per your requirement.
Posted by Makarand Dodmis:
Hello Makarand:
your solution will not have space in the variable as per user query, user needs the spaces in variable.
First of all - you are right I had to quote the variable "$Header". Then I will get the whole string with all the spaces in it.
For explanation why I use the "cut". I have to read a file and know if it is a single line with 160 characters or the content of the file is one record and I will need also the first 160 characaters. Therfor I can not use "head".