summaryrefslogtreecommitdiffstats
path: root/klavaro/L80.txt
diff options
context:
space:
mode:
Diffstat (limited to 'klavaro/L80.txt')
-rw-r--r--klavaro/L80.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/klavaro/L80.txt b/klavaro/L80.txt
new file mode 100644
index 0000000..c982a4c
--- /dev/null
+++ b/klavaro/L80.txt
@@ -0,0 +1,36 @@
+Shell Test
+$ vi ginfo
+#
+#
+# Script to print user information who currently login, current date & time
+#
+clear
+echo "Hello $USER"
+echo "Today is \c ";date
+echo "Number of user login: \c" ; who | wc -l
+echo "Calendar"
+cal
+exit 0
+$ vi demo
+#!/bin/sh
+#
+# Script that demos, command line args
+#
+echo "Total number of command line argument are $#"
+echo "$0 is script name"
+echo "$1 is first argument"
+echo "$2 is second argument"
+echo "All of them are:- $* or $@"
+# vi /etc/bashrc
+# At the end of file add following in /etc/bashrc file
+#
+# today() to print formatted date
+#
+# To run this function type today at the $ prompt
+# Added by Vivek to show function in Linux
+#
+today()
+{
+echo This is a `date +"%A %d in %B of %Y (%r)"`
+return
+}