The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-30-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,429
Quote:
Originally Posted by shanshine
but it shows
+ who
+ awk '{ print $1 }'
+ sort -ud
these lines also.
You have the -x option on (prints executed commands and their arguments).
To disable this option :

Code:
set +x

An example :

Code:
$ set -x
$ date
+ date
Wed May 30 09:40:54 DFT 2007
$ set +x
$ date
Wed May 30 09:41:01 DFT 2007
$

Jean-Pierre