i have a file called C which has the following information:
{n++;t+=$4};END{print "total number of files "n " " "total size"t
print $5, $9}
the code to run on command line is :
Ls –l | grep –v ^d | awk -f C
my problem is that it only prints one ordinary file out of the list. i have 19 oridinary files and only the last file is being printed. how can i make it print out the entire list cuz @ the moment the code which prints from the list is "print $5, $9"
can ne1 help me with this small problem
{n++;t+=$4};END{print "total number of files "n " " "total size"t
print $5, $9}
the code to run on command line is :
Ls –l | grep –v ^d | awk -f C
my problem is that it only prints one ordinary file out of the list. i have 19 oridinary files and only the last file is being printed. how can i make it print out the entire list cuz @ the moment the code which prints from the list is "print $5, $9"
can ne1 help me with this small problem