But if you have spaces in names of songs that may disturb the regex, so maybe this is better:
Code:
find.awk:
a[$4]++ {
regex="\\/[^\\/]*\\)"
if(match($2, regex)) {
pattern=substr($2, RSTART+1, RLENGTH-2);
printf("%s\t%s\n", $4, pattern);
}
}
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
|