LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 04:19 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

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

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:26 PM
mplayer fetch subtitles option: --fetch-subs frenchn00b Linux - General 1 11-10-2009 12:21 AM
Fetch x lines from file G00fy Programming 17 07-18-2008 02:13 PM
distro for bi-processed machine rdabra Linux - Newbie 3 05-02-2008 10:55 PM
Interrupts being processed by only 1 cpu duryodhan Slackware 35 09-10-2007 08:48 PM


All times are GMT -5. The time now is 12:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration