how to delete all characters in file except numbers and "." , each word (numbers/dot) should be in new line in file see example2
- the solution can be with sed or awk or ksh syntax
remark - the solution must be according to the example 2
example 1
file before edit
192.0.22.1++0.1
e32)5.500.5.5*kjcdr
##@$1.1.1.1+++jmjh
1.1.1.1333
33331.1.1.1
@5.5.5.??????
~3de.ede5.5.5.5
1.1.1.13444r54
192.9.30.174
&&^#%5.5.5.5
:5.5.5.5@%%^^&*
:5.5.5.5:
**22.22.22.22
172.78.0.1()*5.4.3.277
3.3.3ki.3.
example 2 of file after delete all characters except numbers and "." charter , each new word will be in new line
192.0.22.1
0.1
32 5.500.5.5
1.1.1.1
1.1.1.1333
33331.1.1.1
5.5.5.
.
5.5.5.5
1.1.1.13444
54
192.9.30.174
5.5.5.5
5.5.5.5
5.5.5.5
22.22.22.22
172.78.0.1
5.4.3.277
3.3.3 .3.

32and5.500.5.5both on line 3? Why is there no3(from3de) between the lines for5.5.5.and.? Why are3.3.3and.3.both on the last line? – jw013 Nov 15 '12 at 19:15