Thread: Text program
View Single Post
Old 10-25-2004, 01:07 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,735
redhead is on a distinguished road
Code:
#!/bin/sh
cat $1 | sed 's/:1080//g'
if you want some other way, be more specific as to if it's C or C++, since file handling is a bit different.
Perhaps you should look at opening file, reading in, string handling, and output. Then try to make something happen, if all fails, give us your suggestion and we will correct it, maybe even come with the solution.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote