I realised that Ubuntu (mine is 10.04) has a system wide Socks Proxy setting while kubuntu dont. It is a simple setting from Proxy Server menu. Write your proxy host and port number and apply it to system-wide. In my case because I do a dynamic ssh port forwarding to my localhost at some port, I wrote at Socks server part "localhost" and my forwarded port number.
I was trying to use sub (or gsub) function in awk to delete an \r from the end of line. For that purpose I used dum=sub(/\r/,"",$0) and thought that the variable "dum" will be filled with the changed value of $0. But I realised that sub function only make the change and returns 0,1 accordingly. So I wrote like this sub(/r/,"") ; x=$0;
Yorumlar