summaryrefslogtreecommitdiff
path: root/klavaro/L80.txt
diff options
context:
space:
mode:
authorflorian <florian@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2010-10-10 07:29:40 +0000
committerflorian <florian@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2010-10-10 07:29:40 +0000
commitbb0bc80bc5762fcb658c82c5a58e421ca79f94fd (patch)
treea79e588fef3a6d5a8e3c9dc9e165fea3bdf8eb48 /klavaro/L80.txt
parent6ebdcf85b6ba3e1b8b9b53942f1bf779036bb86b (diff)
downloadneo-layout-bb0bc80bc5762fcb658c82c5a58e421ca79f94fd.tar.gz
neo-layout-bb0bc80bc5762fcb658c82c5a58e421ca79f94fd.tar.bz2
neo-layout-bb0bc80bc5762fcb658c82c5a58e421ca79f94fd.zip
Klavaro (s. ML <4CAFFA03.1010907@gmail.com><4CAFFA03.1010907@gmail.com>)
git-svn-id: https://svn.neo-layout.org@2351 b9310e46-f624-0410-8ea1-cfbb3a30dc96
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 &amp; 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
+}