I hope my question makes sense. I am quite new to this stuff.
I am using this piped command to make a list:
cat /etc/passwd | cut -d: -f7 |sort -n |uniq
The output is this:
/bin/bash
/bin/false
/bin/sync
/no/shell
/sbin/halt
/sbin/nologin
/sbin/shutdown
/usr/sbin/nologin
I need to put every line in this output to this command:
ls -l /bin/bash
ls -l /bin/false
ls -l /bin/sync
My output then looks like this:
-rwxr-xr-x. 1 root root 917576 11. bře 2013 /bin/bash
-rwxr-xr-x. 1 root root 29920 8. kvě 09.45 /bin/false
-rwxr-xr-x. 1 root root 29940 8. kvě 09.45 /bin/sync
Please help me with this command.