Your requirement is not clear, like how you want to check where and which line/text we need to print with whose width long? As per your sample Input_file only I have written following.
vserver share-name path acl
test test test "test/Read",
"test/write"
Above code checks for line number#2 and then checks for the length from where "test/Read" starts then it looks for 3rd line and prints those many spaces. So be careful it will work only for this shown Input_file samples if you have more requirements then show us more sample Input_file, specially with all the rules and regulations with expected sample output.
May I presume an answer like "Open file in a text editor like vi, go to the relevant line, push the <TAB> key n times, write & close the file" were NOT heartily embraced?
So - please develop the habit to post enough context to enable the volunteers in here to start thinking about your request.
In this case: How is that file produced, can the producing application be adapted, are there more or just one occurrence of those problematic lines, how many fields does each line have, what be the field separator, are there other lines having one single field only that should NOT be modified, etc.
By giving us a DOS format notepad instead of a UNIX text file are you saying that your input is a DOS format file and you want DOS format output (CR/NL as line separators with no terminator at the end of the last line instead of UNIX text files with NL as line terminators)?
You still have not given us any description at all of what input you are reading to produce either of the output files you have shown us (you have shown us actual output and expected output, but no input). How do you expect us to be able to help you transform the input you will be reading to produce the output you want if we have to guess at what the input might be???
From the 2nd header line of your actual output (which does not appear in your expected output), are we to assume that all fields are fixed width and that the ACL output that you are trying to produce and align is to appear starting in column 91 (even though none of your actual or expected output is aligned that way)?
Please help us help you! Give us:
a clear English description of the format of the input you will be processing,
a clear English description of the format of the output you hope to produce,
a sample input file in that format, and
a sample output file showing the exact output that should be produced when processing that sample input file.