I have a text file:
10 20 30 40
50 60 60 80
By using
$ wc -l file.txt
2 file.txt
I get the count, but I want to add that result in my text file.
I want the result to be like this:
2
10 20 30 40
50 60 70 80
What should I do in order to prepend the result in the text file?
I have many of these files in one folder, and instead of providing a single text file at a time, I want to provide all the files at the same time.