> From: Sunita.Pradhan > > I want to print the command during script execution . > Example : > > > =================== > $ls = `ls`; > > Print "$ls\n"; > ================== > > In the above script I want to print "ls" command before 'ls' command gets > executed . Like "set -x" does in shell scripts . > > Could you please help me on this ?
Are you looking for a Perl script, or just a shell script? Using Perl for this appears to be like using a baseball bat to swat a fly. But here in a Perl mailing list, you are going to get Perl scripts. If that is not what you are looking for, you need to find a mailing list for your particular shell, which you didn't name. Bob McConnell -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/