Skip to content

3. Batch Operations

gitarunprasanna83 edited this page Jul 21, 2019 · 9 revisions

By now, you know how to use commands to complete an operation on text files, combine two or more commands using PIPES. In this exercise, you will learn how to make executable files in simple bash script

Create a bash file:

  1. Open a textpad and type the following lines below

bashscript_1

  1. Save as .. bashscript1.sh

** Line 5, shows the same one-liner that we created using pipe in File operations section **

  1. In terminal type -- > bash bashscript1.sh

Let's decorate it more to get more information!

Execute it and see the output..

decoration

What's the big deal ?

Simplify your life !

Combine group of commands to execute one line at a time, process repeated operations with multiple files in a loop

Creating a batch file
Submitting a batch job
Opening a slurm job
Submitting a slurm job
Creating a pipe-line with slurm

Clone this wiki locally