Javier Martínez wrote:
> Ohhhh it is impossible my awk doesn´t do nothing. I don´t know what to do.
> 
> I have test the awk command basicaly by: 
> ls -l | awk '{print $1}' but it doesn't respond nothing
> 
> Any idea about? Please help me.

I have an idea.

Your signature describes you as "Director General" of your company. I
suggest that you hire someone who has the basic skills to make "ls -l | awk
'{print $1}'" do what it should do and give that person the task of
implementing your traffic reporting system.

[EMAIL PROTECTED]:~> ls -l | awk '{print $1}'
total
drwxr-xr-x
drwxr-xr-x

... < I've snipped a lot here -- my current working directory had lots of
      files in it >

-rw-r--r--
-rw-r--r--
[EMAIL PROTECTED]:~>

Even if you execute the command in an empty directory, this happens:

[EMAIL PROTECTED]:~> mkdir empty
[EMAIL PROTECTED]:~> cd empty
[EMAIL PROTECTED]:~/empty> ls -l | awk '{print $1}'
total
[EMAIL PROTECTED]:~/empty>

So _something_ is output ("total").

We are here to help you with Shorewall; not to teach you basic Unix scripting.

If you must do this type of work yourself, then I have another suggestion:

        Brian Kernighan (the Father of Unix) and Rob Pike wrote their
        classic book "The UNIX Programming Environment" (Prentice Hall, ISBN
        0-13-937699-2/0-13-937681-X {PBK}) in 1984. You should try to find a
        copy and read it. It was by studying that book in 1992 that I
        took my first step to learn about Unix.

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to