0

I am trying to figure out a way to take the output of the list of users and pipe it into the last command directly.

I ran the following command initially and I get the list of all real users.

$ getent passwd {1000..60000} | cut -d: -f1 
fly
pig 
cow

How do I redirect that output into the last command so that I can display their login times?

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
Steve
  • 1

0 Answers0