Using a combination of sort/cut/grep/awk/join/paste/sed

I have a file and need to only select users that have a shell of �/bin/bash� in the line using awk or sed please help

awk -F: '$7 == "/bin/bash" {print $1}' /etc/passwd
1 Like

I need to get the infromation from a file called psswd and make the output appear on a different file, how could I do that?

awk -F: '$7 == "/bin/bash" {print $1}' psswd > different_file
1 Like

thank you so very much (: