Top "Scripting" questions

Scripting is a form of programming generally characterized by low formality, loose typing, and no requirement for explicit compilation.

Execute command on all files in a directory

Could somebody please provide the code to do the following: Assume there is a directory of files, all of which …

bash scripting
How to get a password from a shell script without echoing

I have a script that automates a process that needs access to a password protected system. The system is accessed …

bash shell scripting sh
Add a prefix string to beginning of each line

I have a file as below: line1 line2 line3 And I want to get: prefixline1 prefixline2 prefixline3 I could write …

linux scripting text-processing
eval command in Bash and its typical uses

After reading the bash man pages and with respect to this post. I am still having trouble understanding what exactly …

linux bash shell scripting eval
Remove the last line from a file in Bash

I have a file, foo.txt, containing the following lines: a b c I want a simple command that results …

bash command-line scripting truncate
How do I abort the execution of a Python script?

I have a simple Python script that I want to stop executing if a condition is met. For example: done = …

python syntax scripting exit
How to execute Python scripts in Windows?

I have a simple script blah.py (using Python 2): import sys print sys.argv[1] If I execute my script by: …

python windows scripting command-line file-association
Check if a string matches a regex in Bash script

One of the arguments that my script receives is a date in the following format: yyyymmdd. I want to check …

regex bash shell scripting
How can I suppress all output from a command using Bash?

I have a Bash script that runs a program with parameters. That program outputs some status (doing this, doing that...). …

bash shell scripting echo
Scripting Language vs Programming Language

Can anyone explain the difference between Scripting Language and Programming Language please? Also can you state some examples for each. …

scripting programming-languages scripting-language