Using tr in awk
Hi, I have a file and i want to encrypt the third and fourth fields.
cut -f3 -d'|' file | tr 'A-Z' 'a-z'
cut -f4 -d'|' file | tr '0-9' ' '
But i want the encrypted field with the complete file, not just the field.
awk -F'|' '{ OFS='|'; tr 'A-Z' 'a-z' <$3; tr '0-9' ' ' $4; print $0}' file
please help how can i achieve this