Quantcast
Channel: Active questions tagged bash+awk - Ask Ubuntu
Viewing all articles
Browse latest Browse all 102

Editing wc -l src Output

$
0
0

I am new to the Topic and working on a few bash commands.

I am stuck at a task where i Need t ouput my result in a specific Format.

wc -l folder/*

The Output gives me:

0 folder/file13 folder/file23 total

I would like to have only the total output together with a String like:

The total number of lines is: numberOfLines 

How is it possible to format my output / reduce it to a single line?I looked a bit into awk commands but I was not able to make it work.

Thank you very much in advance!


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>