The UNIX and Linux Forums  


Go Back   Die UNIX-und Linux-Foren > Top Foren > Shell Programmierung und Scripting
.
Google unix.com



Shell Programmierung und Scripting Post Fragen zu ksh, csh, sh, bash, Perl, PHP, sed, awk und anderen Shell-Skripte und Shell-Scripting-Sprachen hier.

Mehr UNIX-und Linux-Forum Themen Vielleicht finden Sie hilfreiche
Faden Thread Starter Forum Antworten Last Post
Format Ausgabe mit awk Script. bperl Shell Programmierung und Scripting 8 01-14-2008 01:09 AM
F: Aufzeichnen von Shell-Skript-Ausgabe mit "Script"-Kommando? lalfonso.gomez Shell Programmierung und Scripting 4 01-18-2007 09:31 PM
Log-Script Input-und Output mit tee? moseschrist Shell Programmierung und Scripting 0 11-12-2006 03:32 AM
Dateiname ein Skript-Ausgabe cheo_pr Shell Programmierung und Scripting 3 09-01-2005 05:40 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Suche diesen Thread Rate Thread Anzeige-Modi
  #1 (permalink)  
Old 10-02-2006
alexcol alexcol is offline
Registrierte Nutzer
  
 

Join Date: Sep 2006
Beiträge: 31
Unhappy Skript die Ausgabe mit awk

Bitte Ich brauche Ihre Hilfe.

Ich habe dieses Skript mit awk, diese Skripte zählen und in der Liste ein Muster für jedes Verzeichnis in der Ausgabe, wie gezeigt. aber nicht wie gewünscht. Ich möchte, dass die Ausgabe werden in tabellarischer Form, mit awk:

cuenta_cdrs ()
(
für dir in *
tun
cd $ dir
für die Datei in *
tun
if [-f $ file]
dann
Katze listacdrs | awk '
BEGIN (print "dia", "\ t", "Cantidad")
$ 1 \u003d\u003d vorh. totaldia + \u003d (1)
$ 1! \u003d Prev (print vorh., totaldia; totaldia \u003d 1; prev \u003d $ 1; Filas Filas +1) \u003d '
fi
getan
cd ..
getan
)

OUTPUT
dia Cantidad

01/09/2006 1275
02/08/2006 1285
03/08/2006 1310
04/08/2006 1300
05/08/2006 1415
dia Cantidad

01/09/2006 1275
02/08/2006 1285
03/08/2006 1310
04/08/2006 1300
05/08/2006 1415
06/08/2006 1265
dia Cantidad

01/09/2006 1275
02/08/2006 1285

Aber ich möchte, dass die Ausgabe auf diese Weise:

OUTPUT ANGESTREBTEN
dia dia Cantidad cantidad

01/09/2006 1275 01/09/2006 1275
02/08/2006 1285 02/08/2006 1285
03/08/2006 1310 03/08/2006 1310
04/08/2006 1300 04/08/2006 1300
05/08/2006 1415 05/08/2006 1415

Danke
 

Lesezeichen

Thread Tools Suche diesen Thread
Suche diesen Thread:

Erweiterte Suche
Anzeige-Modi Rate this thread
Rate this thread:

Forumregeln
Du möglicherweise nicht neue Themen
Du möglicherweise nicht nach Antworten
Du möglicherweise nicht post-Anlagen
Du möglicherweise nicht bearbeiten Sie Ihre Beiträge

BB-Code ist Auf
Smilies sind Auf
[IMG] Code Auf
HTML-Code ist Aus
Trackbacks sind Auf
Pingbacks sind Auf
Refbacks sind Auf




Alle Zeiten sind GMT -4. Es ist jetzt 03:07 AM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Ltd. Sprachliche Übersetzungen Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
Die UNIX-und Linux-Foren Content © Copyright 1993-2009. Alle Rechte Reserved.Ad Management von RedTyger

Content Relevant URLs durch vBSEO 3.2.0