Re: [lug-nuts] misc unix tool questions

From: Brian Lavender (brian@brie.com)
Date: Fri Dec 17 1999 - 20:02:14 PST


On Thu, Dec 16, 1999 at 02:24:09PM -0800, Webb Sprague wrote:
Webb> Hi folks. 2 quick questions:
Webb>
Webb> 1. What do the magic numbers mean when you do "ls -l"?

Which "magic" numbers are you referring to, Webb?
If anyone knows what the "1" in the "ls -l" means, I would
be curious to know.

$ ls -l ~/tmp

total 1
-rw------- 1 brian brian 360 Dec 17 19:55 dead.letter
 ^ ^ ^
 | | +- File size
 | + I am not sure what this means
 |
 +- User Read/Write, Next is group, then world
 
Webb> 2. How do you tell awk to match an empty field? "$1
Webb> ~ //" matches on every record in my thing, whether $1
Webb> has anything in it or not.

Hmm,

I am just speaking from PERL experience, but you could try
~\ //
or
~\s//
or
~\S//

HTH

brian

-- 
Brian Lavender
http://www.brie.com/brian/
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 11 2000 - 16:20:22 PST