Skip to content

A few interesting shell scripts which we come across in our normal daily life

License

Notifications You must be signed in to change notification settings

kmr0877/interesting-Shell-and-Perl-scripts

Repository files navigation

Interesting-shell-scripts

A few interesting shell scripts which we come across in our normal daily life

jpg2png.sh

A shell script jpg2png.sh converts all images in JPEG format in the current directory to PNG format. It is assumed that JPEG files and only JPEG files have the suffix jpg. If the conversion is succesful the JPEG file should be removed.

email_image.sh

A shell script email_image.sh which given a list of image files as arguments displays them one-by-one. After the user has viewed each image the script will prompt the user for an e-mail address. If the user does enter an email address, the script will prompt the user for a message to accompany the image and then send the image to the specified e-mail address.

Pre_requisite.pl

A Perl script which prints courses which can be used to meet prerequisite requirements for a UNSW course.The script will download the UNSW handbook web pages and extract the information from them when it is run and will print the courses in alphabetic order.

_unsw_courses.pl _

A Perl script unsw_courses.pl prints the course codes with a given prefix of all UNSW courses with lectures on the Kensington Campus in present session(2017).You can change the year and search accordingly.

bash2perl.pl

A Perl program bash2perl.pl which takes a Bash script as input and outputs an equivalent Perl program. The Shell (Bash) scripts which do arithmetic calculations which we need to translate to Perl. The scripts use the arithmetic syntax supported by Bash (and several other shells). Fortunately the scripts only use a very limited set of shell features.

About

A few interesting shell scripts which we come across in our normal daily life

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published