Select ip and date using sed or gawk

1.56.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.6.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.65.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.65.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.63.53.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.65.253.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.16.23.48 - - [09/Nov/2009:07:02:24 +0100] "GET "
1.64.25.48 - - [09/Nov/2009:07:02:24 +0100] "GET "

need command which give the output

1.6.253.48 - 09/Nov/2009:07:02:24
1.65.253.48 - 09/Nov/2009:07:02:24
1.63.53.48 - 09/Nov/2009:07:02:24
1.16.23.48 - 09/Nov/2009:07:02:24
1.64.25.48 - 09/Nov/2009:07:02:24

awk -F'[ \t[]*' '{print $1,$2,$4}'
$ awk '{print $1,$4}' file

Hi,

Assuming the contents are saved in a file "saved_data", you can try the following.

cat saved_data | tr "+" "-" | cut  -d"-" -f1,3

You can easily remove the square brackets as well using tr.

no need cat.

Thanks. I need uniq entries based on ip address

That is not possible with your input file since there are multiple entries with the same IP-address. Perhaps you mean you would like to have it sorted?

sort -u