LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to fetch no of lines which are processed? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-fetch-no-of-lines-which-are-processed-4175520600/)

ixcrpts 09-30-2014 09:52 AM

how to fetch no of lines which are processed?
 
Hello all,

I am proccessing on a files and I get error in the file but not the line no.
So, how one could get the no of lines already processed or at which line no the error occured?

Thanks in advance.

teckk 09-30-2014 03:19 PM

You are doing what? Compiling, running a bash script, batch renaming?

eklavya 10-01-2014 04:47 AM

I am assuming you are using bash script. Run command
Code:

bash -x filename.sh


All times are GMT -5. The time now is 01:16 AM.