Страница 1 из 1

awk for windows кто-нибудь использовал?

Добавлено: 27 мар 2007, 10:53
Аман Ванкуверский
Apparently awk for windows uses different special characters inherited from Windows.

So far, using swag method i found that

Код: Выделить всё

awk '{print $1}'
in Windows should be

Код: Выделить всё

awk "{print $1}"
Now I'm trying to do

Код: Выделить всё

awk '{print a "\t" b}'
and I can't figure out what to use to substitute " symbol

Any clue?

P.S. I would love to RTFM if there was FM I could FR :)
P.P.S. The only thing Google came up with was the same question with answer "Use perl instead" :)

Re: awk for windows кто-нибудь использовал?

Добавлено: 27 мар 2007, 10:57
ajkj3em
\" ?

Re: awk for windows кто-нибудь использовал?

Добавлено: 27 мар 2007, 11:10
Аман Ванкуверский
ajkj3em писал(а):" ?
:oops: thanks

Код: Выделить всё

gawk "{ print "a" "\t" "b"}" 
works