Exercise 1-9. Write a program to copy its input to its output, replacing each .......
Quote:
Or if u can please show some sample code and try to example. |
So if the input is:
gsdgsdfg dfsfsfgds gdsfgsdafgdfg the output is: gsdgsdfg dfsfsfgds gdsfgsdafgdfg Is that correct? It seems like an easy thing to do. Grab stdin and use a for loop on it and put it into stdout. |
See, i understood it as something like this:
Input: Joe...is a schmoe that......everyone..knows. ( there really are spaces in here . <- is 1 space ) Output: Joes is a schmoe that everyone knows. In which case, using sed will fix up that problem easy. |
Thnx alot never knew this forum has such smart programming gurus
|
All times are GMT -5. The time now is 11:21 PM. |