Tags » Shell Script

How to Create a Shell Script?

What is Shell Script?
  • Shell scripts are short programs that are written in a shell programming language and interpreted by a shell process.
  • They are extremely useful for automating tasks on Linux and other Unix-like operating systems.
How To Create A Shell Script?


– You need 2 options 

if [ $# -ne 2 ]; then
echo “Num of input option is $# ” 1>&2
echo “Need 2 options” 1>&2… 24 more words

Shell Script

Setting the Screen Saver to a static image

On our Windows systems we have a static image as our screen saver and I wanted to match that on our Macs.  There are several options in the Screen Saver settings of System Preferences.   422 more words

Shell Script

SHELL SCRIPTING #1 : Create and run your first .sh file

STEP 1: Open a text file, write the below commands and save it as test.sh .


               echo “THIS IS MY FIRST SHELL”

STEP 2: Copy it to a folder in your unix machine. 23 more words

split text file in bash

create N files (suffix x0piece) each with max 700 lines

split --numeric-suffixes=1 --additional-suffix=piece -l 700 fileTosplit
Shell Script

Tips and Tricks AWK - Sed (Stream editor)

One day, we want to remove specific line or row from our files such as .txt, .csv, or even it has come from .sql files. Just using these params : 58 more words