Off topic:run perl script without pl extension as any other shell command
0
0
Entering edit mode
8.9 years ago
cabraham03 ▴ 30

Hi, I will like to use my own perl scripts as any other command, I mean as "ls, chmod, cd, etc."

Example I have a perl script used to convert fastq file to fasta file and it is executed as:

perl fastxQA.pl [argument1] [argument2]

and I will Like to use just like:

fastxQA [argument1] [argument2]

I just moved the script fastxQA.pl to /usr/local/bin and I give the permission (chmod 700 fastxQA.pl) and it works like:

fastxQA.pl [argument1] [argument2]

but I will like to use it without the pl extension!

Right now I have few personal script and I will like to use like any other shell command; bye the way I have a Mac OS X

Thanks So Much!

perl • 2.1k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2870 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6