Script Categories

Script to Store given command and execute them

Posted in Academic

Write script to store the following command and execute them:
a) date
b) echo "Message"
c) cal

 
#!/bin/bash
# Script to Store given command and execute them
# -------------------------------------------------------------------------
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# ----------------------------------------------------------------------
date
cal
echo "Hello Friends"
 

Download - Email this to a friend - Printable version

Discussion on This Shell Script:

  1. fara Says:

    i want a program on non recursive shell scriptthat accepts any number of arguments and prints them in reverse order

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tags: , , , , , ~ Last updated on: April 3, 2008