summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradityacp2016-08-26 11:34:11 +0530
committeradityacp2016-08-26 11:34:11 +0530
commite8769f5d8c43ee7c2655133b676ae53d2987c79c (patch)
treed2cb3e2e7731e106c4ba891647f5893db0e8f348
parent0f42918020b5eb436e73e564ca8b519e84aecfa2 (diff)
downloadonline_test-e8769f5d8c43ee7c2655133b676ae53d2987c79c.tar.gz
online_test-e8769f5d8c43ee7c2655133b676ae53d2987c79c.tar.bz2
online_test-e8769f5d8c43ee7c2655133b676ae53d2987c79c.zip
added bash script for bash demo question
-rwxr-xr-xyaksh/bash_files/sample2.args1
-rwxr-xr-xyaksh/bash_files/sample2.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/bash_files/sample2.args b/yaksh/bash_files/sample2.args
new file mode 100755
index 0000000..cf4499d
--- /dev/null
+++ b/yaksh/bash_files/sample2.args
@@ -0,0 +1 @@
+file1.csv file2.csv file3.csv
diff --git a/yaksh/bash_files/sample2.sh b/yaksh/bash_files/sample2.sh
new file mode 100755
index 0000000..5dc55b8
--- /dev/null
+++ b/yaksh/bash_files/sample2.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+cat $1 | cut -d: -f2 | paste -d: $3 - $2