Jump to content


awk scripting


afracten

Recommended Posts

#!/bin/gawk -f

BEGIN{}

{if (/<a/ || /<img/)

link=link+1

}

{if (/<a/ || /<img/)

cnt[$i]++

}

END{ print "Number of links in file = ",link

print "File Name and Path = "FILENAME

for (name in cnt) print(name,"\n",cnt[name])}

ελεος! παιδια, αυτο ειναι ενα awk script to οποιο εγραψα. δεν μπορω να το κανω exectutable.

κανω type chmod +x aa1.sh (aa1.sh ειναι το ονομα του file μου).

help?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.