Is there shell script application. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there shell script application.

interested in creating commands

12th Feb 2017, 4:43 PM
Aswin Balaji M
Aswin Balaji M - avatar
4 Answers
+ 4
Instead of other languages unix/linux shell scripting has many variations like sh, bash, ksh.. and sometimes there are little differences between OSs.. Some commands like cut, sed, awk depend on the version of the OS (often on Aix Ibm servers are not installed). So, my advice is looking on google on a basic bash course and after that try on the system where you would work.
12th Feb 2017, 5:22 PM
Michael Isac Girardi
Michael Isac Girardi - avatar
+ 3
Basically, you create 'shell application' with all language, as this is the CLI ( Command Line Interface ) basic text mode versus the GUI ( Graphic User Interface ) complex to handle mode for interaction between user and computer... C, C++ and others compiled languages ( not script, in meaning of interpreted language, but script in sense of you write text source code ) are traditionnally used for coding app for use as command line utils. But with evolution and grow up of computers speed and memory, scripting solution are more and more usable, as in all operating systems, developments are doing in a growing up part of domains ( ie Python is a lot used by Debian dev's ). Bash-likes are root script language, firstly designed to handle lists of command lines, to automatize series of externals command ( as you can do manually at prompt of a command line interpreter )... You can do a lot of thing, just by assembling commands, as well as pseudo commands... But these languages seems obscur to me, and hard to learn... While Python, Ruby, the next level in scripting languages allows to do more things, more effectivly ( but run a command as in command line require some headache to resolve :P ), and more easiest :) Next step is the Java case, wich is intermediate between interpreted and compiled language, called 'semi-compiled', as they continue to be interpreted after a pre-compilation ( purpose is to benefit at same time of effectivity from compiled languages, and of portability of interpreted languages )...
14th Feb 2017, 6:47 AM
visph
visph - avatar
+ 2
You can use python scripts as linux commands just writing files with your codes in it. Remember to place the line #!/usr/bin/python3 on top of your python script. After creating, adjust the permitions allowing execution. chmod +x your_file.
12th Feb 2017, 5:25 PM
Kleber Leal
Kleber Leal - avatar
0
On the Linux operating system you have a few options. The easiest would be Bash script which is interpreted on the command line. Another common option is Python however the best language to use if you have the time to learn it is C
13th Feb 2017, 3:12 AM
Kurios Gaming
Kurios Gaming - avatar