Hello all,
I am new one to this forum.
(bash scripting.)
I have a file.
http://sg.yimg.com/i/my/mastheads/my\_ans_ma1.gif
internal://project/squid-internal-static/icons/anthony-unknown.gif
cacheobjects://project/css/bdg.js
ftp://erd.org/bgr/mine.gif
...........................................
.........................................
i try tp print only full domain names with http, ftp etc..
http://sg.yimg.com
internal://project
cacheobjects://project
ftp://erd.org
..................
..................
i try one command
awk 'BEGIN{OFS=FS="/"} {print $1 $2}' filename
But this provide only
http:
ftp:
internal:
..........
.......
........
Pls help me