write a script

Go down

write a script

Post  Admin on Mon Aug 11, 2008 12:31 pm

you have to write a script to give the user login on the system in alphabetically sorted order? Very Happy

Admin
Admin

Posts : 39
Join date : 2008-08-03

View user profile http://computerclub09mnnit.forumotion.net

Back to top Go down

Re: write a script

Post  ankurgutpa on Mon Aug 11, 2008 1:43 pm

who | awk '{print $1}' | sort -u cheers
avatar
ankurgutpa

Posts : 44
Join date : 2008-08-10
Age : 30
Location : Tandon 72

View user profile

Back to top Go down

Re: write a script

Post  ankitgr8 on Thu Aug 14, 2008 7:19 am

who|cut -f 1 -d " " |sort -u

ankitgr8

Posts : 6
Join date : 2008-08-11

View user profile

Back to top Go down

Re: write a script

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum