Skip to main content

Posts

Showing posts from February, 2017

Linux awk command

--gsub(r,s) gsub(/0/,23) string icersinde axtarilan 0 deyerini 23 ile evez edir Example1:                  ls -l | awk 'gsub(/0/,23) {print $5} --index(s,t)  index("Arrays","ys") string-in icersinde "ys" axtarilir necenci index-de oldugu qaytarilir Example2:                  ls -l | awk 'BEGIN {print index("Arrays","ys")}'