Jump to content

awk scripting


afracten
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...