Quote:
Originally Posted by DeltaX
I think I figured it out !!
Thanks anwyays.
I have another question
I'm trying to do a fold script similar to the one built in the system. For ex, let say I wanna fold lines at 80 columns ( given input with lines that are 120 columns long, it prints the first 80 characters of each line, a new line, and then the remaining 40 characters )
Thanks in advance
|
Code:
awk '{s1=substr($0,1,80);s2=substr($0,81);print s1;print s2}' file