Output piped to case insensitive awk

view story

http://www.unix.com – I have an encrypted password file, and I've created a simple script to search the password file for a particular record. There are multiple lines per record, so I'm using a record delimiter. Code: #!/bin/bash PATTERN=$1 openssl des3 -d -salt -in ~/docs/pass.des3 | awk '{ FS="\n" ; RS="*" } '/$PATTERN/' { print }' It works fine but I would like the awk search pattern to be case insensitive. I've search a lot and not found a suitable solution, and as the file is encrypted, I'm pretty certain I have to run the openssl decrypt first and pipe the output to awk, rather than (HowTos)