I have a file (encrypted_pass.txt) with 2 columns: user1 encrypted_pass1user2 encrypted_pass2 user3 encrypted_pass3...user passwords (2nd column) are encrypted. I have a shell script that decrypts the encrypted passwords. The script takes an encrypted password as the input and decrypts it:decryptor.sh -d encrypted_passwordWhat I want to do is to take encrypted passwords from the file (column 2), decrypt it and write the dcrypted password to a new file.Thus, the output file should be:user1 decrypted_pass1user2 decrypted_pass2 user3 decrypted_pass3...How can I do this by awk?
Take the nth column of a file and make them input to a shell script
text processing;awk
You could also use something like this:cut -f2 -d   input_file | xargs -n1 decryptor.sh -d > output_file