Show which line of a shell script is currently executed

bash -x foo.sh
This way you don't need to replace first line of a bash foo.sh script #!/bin/bash with #!/bin/bash -x to obtain the same effect

-1
By: knoppix5
2020-09-10 19:56:42

What Others Think

I had a lot of new ideas when reading this post, it provided me very useful information. Thanks for this valuable information for all. novel online
samantha · 24 weeks ago
If you do not want to simply donate your money to scammers when ordering work in writing service, then pay your attention to the review on the site https://rankmywriter.com/edubirdie-com-review. It would seem obvious, but still many people order works there.
Useynas · 22 weeks and 5 days ago
If you do not want to simply donate your money to scammers when ordering work in writing service, then pay your attention to the review on the site https://rankmywriter.com/edubirdie-com-review. It would seem obvious, but still many people order works there.
Useynas · 22 weeks and 5 days ago
I learned absolutely everything about my question when I read this post, thanks to the author for the detailed description. I wrote my review on the https://ukbestessays.org/ , you can go in and read. Thank you very much for your attention and your time.
Faucher · 22 weeks and 2 days ago
guitar lessons reno I think I need more information
yeoyeo · 21 weeks and 5 days ago
great help. thanks for this fencingreddingca.com
looneyhans · 20 weeks and 1 day ago
Hey thanks for sharing this post, it helped me a lot while searching for some new things related to coding and stuff for my assignment at Essay Help Online. It would be much appreciated if you will share more content related to this as well.
alicemorgan · 19 weeks and 5 days ago
thanks for this post! bathroomremodelchattanoogatn.com
Killersmile · 19 weeks and 5 days ago
thanks for this life coaching atlanta
looneyhans · 17 weeks ago
How can I determine the name of the Bash script file inside the script itself? commercial painting
philip96 · 16 weeks and 5 days ago
eyelash extensions glad i found this site!
idasanka · 15 weeks and 5 days ago
This is really awesome! i love it couples counseling
idasanka · 15 weeks and 3 days ago
Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! find" rel="nofollow">http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446'>find here
bojokey283 · 15 weeks and 2 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. read more http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446
xoheko1229 · 15 weeks ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446">Click here
xoheko1229 · 15 weeks ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. Click here http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446
xoheko1229 · 15 weeks ago
slope unblockedWow, this is very interesting reading. I found a lot of things which I need. Great job on this content. This is very interesting reading. Great job on this content. I like itcookie clicker
kittydurgans · 14 weeks and 2 days ago
Thank you for the great comments, I look forward to more support from the forums but our helpful website and run 3 is the best site you should use.
yisoo · 14 weeks and 1 day ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. forex trading for beginners
bojokey283 · 14 weeks ago
hearing aids sioux falls I got lost good thing I found this site!
yeoyeo · 13 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. covid playa del carmen
bojokey283 · 13 weeks and 5 days ago
Thank you for this helpful advice https://tetrisgame.online
LidaKieu · 13 weeks and 1 day ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. online marketing
bojokey283 · 13 weeks ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. rubbish removal bridgend
bojokey283 · 12 weeks and 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. taco catering las vegas
bojokey283 · 12 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. buy targeted traffic
bojokey283 · 12 weeks and 3 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Turmeric powder
bojokey283 · 12 weeks and 1 day ago
a solution that borrows parts of l0b0’s and DopeGhoti’s answers (and, to a lesser extent, sorontar’s). Like those answers, mine uses $LINENO to discover the line number; unlike them, I use trap to trigger the reporting. interior painting
philip96 · 10 weeks and 6 days ago
thanks for sharing this with us! love it!
sammm · 10 weeks and 5 days ago
We can see certain linux commands here for doing various tasks. This command will show which line of a Plant-Based Meals shell script is currently executed. We can see such various sites that help students for easy learning of programming languages. Looking here for more details.
Alyssalauren · 10 weeks and 4 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. tulum quintana roo mexico
bojokey283 · 10 weeks and 1 day ago
That's great. I was impressed by your writing. I am happy to see such a topic. Please come to my blog and read it. www.pupilpath.com
Richlandd · 10 weeks ago
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. schlüsseldienst in köln
bojokey283 · 10 weeks ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. cozumel
bojokey283 · 8 weeks and 3 days ago
You mention that you're already using -x. The variable PS4 denotes the value is the prompt printed before the command line is echoed when the -x option is set and defaults to : followed by space. land clearing
philip96 · 8 weeks and 1 day ago
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. beszerzési pályázatírás Debrecen
bojokey283 · 7 weeks and 6 days ago
this is really nice to read..informative post is very good to read..thanks a lot! youtube shares
xoheko1229 · 7 weeks and 2 days ago
This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! cenote azul Tulum
xoheko1229 · 7 weeks and 2 days ago
What is SEO & Why is it Important? Check here http://seoexpert21.simplesite.com/
Charles231 · 7 weeks ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. rumah pintar
bojokey283 · 7 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. maximálisan felkészült ügyvéd Debrecen
bojokey283 · 6 weeks and 1 day ago
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. best cozumel beach
xoheko1229 · 5 weeks and 6 days ago
I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me. snorkel in cozumel
xoheko1229 · 5 weeks and 5 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. top things to do in tulum
xoheko1229 · 5 weeks and 2 days ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. newest hotels in cancun
xoheko1229 · 5 weeks ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. best restaurants in cancun beach
xoheko1229 · 5 weeks ago
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. top restaurants playa del carmen
xoheko1229 · 4 weeks and 6 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. trip to isla mujeres
xoheko1229 · 4 weeks and 5 days ago
Thanks so much for sharing this awesome info! I am looking forward to see more posts by you! resorts in isla mujeres
xoheko1229 · 4 weeks and 4 days ago
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. things to do in isla contoy
xoheko1229 · 4 weeks and 3 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. treatnheal
xoheko1229 · 3 weeks and 1 day ago
I am impressed by your post. It contains very informative data and i gain a lot information from it. It is very useful for me. Thanks for sharing and keep on sharing that type of posts.It is brilliant blog. I like the way you express information to us. It is very useful for me. You are doing great job and thanks for sharing.Get best Dubai Mobile App Development service you visit here site https://www.adwebstudio.com/mobile-app-developers-dubai
smithalbert639 · 2 weeks and 4 days ago
I read your excellent post. After reading this post, i really appreciate your effort and my request is to please share us more post in future. Keep it up.It is one of the best information which you are providing. I love your blog because it totally full of informative posts. You are nice one and thanks for sharing.The Mobile App Development Dubai provides good service you visit here site https://www.mistersaad.com/
smithalbert639 · 2 weeks and 4 days ago
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. http://www.bracescarolina.com">Braces Raleigh Orthodontics
xoheko1229 · 2 weeks and 4 days ago
Wow! I did not know you can use ipad that way! This is interesting kitchen remodeling honolulu
aegyjingoo · 1 week and 4 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. unique bathroom vanity
bojokey283 · 1 week and 2 days ago
Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. best place to stay in tulum
xoheko1229 · 3 days ago
Please continue this great work and I look forward to more of your awesome blog posts. covid cozumel
bojokey283 · 1 day ago
I'd like to bookmark your website to constantly check it for updates. :) Idaho Select Insurance Workers Compensation: https://www.isiwc.org/
Cpa1931 · 5 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: