Hi, All:
Here I'd like to read in a plain text file,, but I need to keep its original format( its orginal format is line after line, we will keep this), and to keep the read-in characters to be no more than 160 characters, and write these read-in content(keep its original format,even if we can't get the last complete line because of the 160 characters' limitation) to another file.
Does anyone can help with this issue? As I am a newbie, not very sure about if shell script has such a ability? Or it can't do such a truncating work??
Any suggestions are welcomed!
Here I'd like to read in a plain text file,, but I need to keep its original format( its orginal format is line after line, we will keep this), and to keep the read-in characters to be no more than 160 characters, and write these read-in content(keep its original format,even if we can't get the last complete line because of the 160 characters' limitation) to another file.
Does anyone can help with this issue? As I am a newbie, not very sure about if shell script has such a ability? Or it can't do such a truncating work??
Any suggestions are welcomed!