Show the first word on each line

Posted on

Apr,30

 at

3:13 pm

by

jimazing

Building on the Not Dir command from last Friday… Andrew asked me today if I would help him come up with a way to parse a text file and show only certain lines that have the words “,smack”, “,my” or “,asprin” (notice that each of these is right after a comma). Oh yeah, the […]

Who’s logged in to a machine

Posted on

Mar,28

 at

11:33 am

by

jimazing

If I want to check to see who is logged into a machine on a network…
nbtstat -a machinename
Output looks like this…
Local Area Connection:
Node IpAddress: [x.x.x.x] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
———————————————
MachineName <00> UNIQUE Registered
Domain <00> GROUP Registered
MachineName <03> UNIQUE Registered
MachineName <20> UNIQUE Registered
someone’s ID <03> UNIQUE Registered
MAC Address = 00-88-99-99-11-22