Search Results

Search: Posts Made By: flevongo
20,948
Posted By flevongo
Thanks Franklin52.... this was the command I...
Thanks Franklin52....
this was the command I used
ls -l | awk 'BEGIN {crap=0} {if (^[^d]) {awk '/crap/{crap++}' $8} END {print crap}'
I was hoping to be able to just print the total count ...
but...
20,948
Posted By flevongo
thanks vidyadhar85... that works for one file....
thanks vidyadhar85...
that works for one file. So I would have to do that for every file in the dirctory. I was hoping there was a way to do that for all the files in the directory with a single...
20,948
Posted By flevongo
Using Awk within awk to read all files in directory
I am wondering if anyone has any idea how to use an awk within awk to read files and find a match which adds to count.
Say I am searching how many times the word crap appears in each files within a...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy