From bb0bc80bc5762fcb658c82c5a58e421ca79f94fd Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 10 Oct 2010 07:29:40 +0000 Subject: 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 --- klavaro/L80.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 klavaro/L80.txt (limited to 'klavaro/L80.txt') 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 +} -- cgit v1.2.3