1

Why is this variable not getting passed to awk?

view story
linux-howto

http://unix.stackexchange.com – How do I pass this variable below? This doesn't work: fname=testfile.txt lsof | awk '/deleted/&&/$fname/ {print $4}' *----no output* While this works: lsof | awk '/deleted/&&/testfile.txt/ {print $4}' 3r (HowTos)