afracten Posted May 4, 2010 #1 Share Posted May 4, 2010 #!/bin/gawk -fBEGIN{}{if (/<a/ || /<img/) link=link+1}{if (/<a/ || /<img/) cnt[$i]++}END{ print "Number of links in file = ",linkprint "File Name and Path = "FILENAMEfor (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 More sharing options...
Jaco Posted May 8, 2010 #2 Share Posted May 8, 2010 για να το τρέξεις...:$ ./aa1.shαν δεν έχεις τα δικαιώματα να το τρέξεις, άλλαξε τα με chmod... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now