Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-30-2008, 10:51 AM
Aaron Gray
Tablet PC Guest
 
Posts: n/a
How do I make bash echo commands

How do I make bash show the commands it is executing ?

Many thanks in advance,

Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-30-2008, 10:51 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 06-30-2008, 11:30 AM
Aaron Gray
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

"Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
> In alt.os.linux, Aaron Gray wrote:
>
>> How do I make bash show the commands it is executing ?

>
> set -x


Thanks Lew,

Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 06-30-2008, 11:30 AM
Lew Pitcher
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

In alt.os.linux, Aaron Gray wrote:

> How do I make bash show the commands it is executing ?


set -x


--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 06-30-2008, 12:00 PM
Aaron Gray
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

"Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
> In alt.os.linux, Aaron Gray wrote:
>
>> How do I make bash show the commands it is executing ?

>
> set -x


Is there anyway to get it to echo without the '+ ' at the beggining of the
line ?

Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 06-30-2008, 01:11 PM
Dan C
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:

>>> How do I make bash show the commands it is executing ?


>> set -x


> Is there anyway to get it to echo without the '+ ' at the beggining of the
> line ?


Read the ****ing man page, you sniveling helpless stooge.

> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138


Oh. I guess you can't do that.

Sounds like a homework question to me. Bugger off.


--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 06-30-2008, 01:40 PM
Aaron Gray
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

"Dan C" <youmustbejoking@lan.invalid> wrote in message
news:pan.2008.06.30.20.51.20.227389@moria2.lan...
> On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:
>
>>>> How do I make bash show the commands it is executing ?

>
>>> set -x

>
>> Is there anyway to get it to echo without the '+ ' at the beggining of
>> the
>> line ?

>
> Read the ****ing man page, you sniveling helpless stooge.
>
>> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138

>
> Oh. I guess you can't do that.
>
> Sounds like a homework question to me. Bugger off.


Hi Dan, just here to annoy you again, as thats my sole purpose in life,
sorry I have not been annoying you again lately, but I am back now :)

No its not a homework question. I actually do open source software
development and am porting my project across Windows, Mac OSX and Linux so
people can use it what ever machine they are using. Now its great to ask a
quick question and get a quick answer without having to read through man
pages (which I hate doing) and move on to the next problem.

Cheers for the answer,

Aaron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 06-30-2008, 05:50 PM
Chris F.A. Johnson
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

On 2008-06-30, Aaron Gray wrote:
> "Lew Pitcher" <lpitcher@teksavvy.com> wrote in message
> news:bc701$48692e64$cef8b59e$1444@TEKSAVVY.COM-Free...
>> In alt.os.linux, Aaron Gray wrote:
>>
>>> How do I make bash show the commands it is executing ?

>>
>> set -x

>
> Is there anyway to get it to echo without the '+ ' at the beggining of the
> line ?


PS4=

Or:

set -v ## Not quite the same as set -x

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 06-30-2008, 05:50 PM
Chris F.A. Johnson
Tablet PC Guest
 
Posts: n/a
Re: How do I make bash echo commands

On 2008-06-30, Aaron Gray wrote:
> "Dan C" <youmustbejoking@lan.invalid> wrote in message
> news:pan.2008.06.30.20.51.20.227389@moria2.lan...
>> On Mon, 30 Jun 2008 20:49:04 +0100, Aaron Gray wrote:
>>
>>>>> How do I make bash show the commands it is executing ?

>>
>>>> set -x

>>
>>> Is there anyway to get it to echo without the '+ ' at the beggining of
>>> the
>>> line ?

>>
>> Read the ****ing man page, you sniveling helpless stooge.
>>
>>> X-Newsreader: Microsoft Outlook Express 6.00.2900.3138

>>
>> Oh. I guess you can't do that.
>>
>> Sounds like a homework question to me. Bugger off.

>
> Hi Dan, just here to annoy you again, as thats my sole purpose in life,


While that's a worthy objective, you are only annoying everyone
else by reposting DanC's drivel. Please just killfile him.

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Help Required ... dirty.angelz@googlemail.com Linux 1 03-11-2008 01:00 PM
bash question Eric Linux 5 02-08-2008 01:30 AM
A little bash/perl programming help? Ivan Marsh Linux 21 11-04-2007 07:40 AM
Office 2003 Make All Menu Commands available to all Programs Galen W. Sievert, PCC, MS Ed. Microsoft Office 2 01-23-2007 07:00 AM
Echo multiple messages separated by new line thorugh "echo" command Vijay Jain Windows XP 1 01-04-2007 05:56 AM


All times are GMT -8. The time now is 06:57 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0