LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2014, 09:52 AM   #1
ixcrpts
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 09-30-2014, 03:19 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You are doing what? Compiling, running a bash script, batch renaming?
 
Old 10-01-2014, 04:47 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
I am assuming you are using bash script. Run command
Code:
bash -x filename.sh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse log file for errors and fetch variable number of lines before and after error jgm27 Linux - Newbie 4 07-18-2012 05:26 PM
mplayer fetch subtitles option: --fetch-subs frenchn00b Linux - General 1 11-09-2009 11:21 PM
Fetch x lines from file G00fy Programming 17 07-18-2008 01:13 PM
distro for bi-processed machine rdabra Linux - Newbie 3 05-02-2008 09:55 PM
Interrupts being processed by only 1 cpu duryodhan Slackware 35 09-10-2007 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration