Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
sed remove chars
Name: titsataki Date: January 20, 2005 at 16:17:35 Pacific OS: HP-UX 11i CPU/Ram: 8/8Gb
Comment:
Hi everybody,
I have a text file with 3.5 mil lines. Each line has 100 characters (blanks, upper case numbers etc...) I would like to remove the first 50 characters of each line and the last 43 characters. that would leave the middle 7 characters. Or on the other had to pick characters 50-57 of each line and output it to a file. There is no real pattern to match here except that each line has 100 characters. Can it be done via sed?
Summary: That sounds similar to what I am working on. cat<<here Please enter the record number of the particular record to change: here read number record=`sed -n ${number}p phonebook` name=`echo $reco...
Summary: Hi, I have to remove a string from a file. The content of the file looks like: var1='123' or id like '111' or id like '222' or id like '345' or id like I have to remove the last occuring 'or id like' ...