Print % of the lines in a file
Hi all,
I have multiple files(10000+), which i want to print 95% of the total lines in each file. For example if i have file with 100 lines, i want to print the first 95. My problem is that this step happen in a middle of a script.. Is there an easy way to do so? Thanks, Pap |
Show us what code you've tried so far and what exact problem you have.
We're here to help rather than write code for you. |
i wrote this:
Code:
#!/bin/bash |
Anyway - this works for me:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 08:15 AM. |