skip to main
|
skip to sidebar
Shell Programming In Unix
Subscribe:
Pages
Home
Text
Recent Articles
Nike Sports
Ads 468x60px
Recent Posts
Google Plus
Download
Home
Thursday, 12 April 2012
A script reads a input from keyboard and print the input on the screen.
#! /bin/sh
# A script reads a input from keyboard and print the input on the screen.
echo “Enter the input please”
read input
echo “The entered input is /n”
printf $input
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Unknown
View my complete profile
Popular Posts
A Shell script takes the input from the command line and prints the number of commands line arguments entered.
#! /bin /sh # A Shell script takes the input from the command line and prints the number of commands line arguments entered. echo "...
Write a shell script to read a number from user and check whetherhe message numm the number is less than or equal to 99, if it is less than 99 then display the message number is less than 99 otherwise number is greater.
#! /bin /sh # Write a shell script to read a number from user and check whetherhe message numm the number is less than or equal to 99, if ...
Write a shell program to copy, read two files name the keyboard and copied the contents of source file into the destination file. (f1 to f2).
#! / bin / sh # Write a shell program to copy, read two files name the keyboard and copied the contents of source file into the destinati...
Write a shell script to read a basic salary of an employee, if the basic salary is less than or equal to 1500 then display the message as the employee type is class-3 otherwise display the message is employee class-2
#! / bin / sh # Write a shell script to read a basic salary of an employee, if the basic salary is less than or equal to 1500 then displa...
Write a shell script that reads a pattern and a file name from the keyboard, if the file exist then pattern should be search on the file and display accordingly where the pattern is matched otherwise display file not found.
#! / bin / sh # Write a shell script that reads a pattern and a file name from the keyboard, if the file exist then pattern should be sea...
Program to print the name of the shell script sunning
# / bin / sh # Program to print the name of the shell script running. echo " The number of inputs entered " echo $# echo ...
A script reads a pattern name & file name from a user & displays the pattern that is matched into a file onto a screen.Post title
# ! /bin/sh # A script reads a pattern name & file name from a user & displays the pattern that is matched into a file onto a ...
Write a shell script to check wether the file exist in the current directory, if the file exist then display the contents of the file else display the file not found in the current directory.
#! / bin / sh # Write a shell script to check wether the file exist in the current directory, if the file exist then display the content...
Write a shell script to read a basic salary of an employee, if basic salary is less than or equal to 5000 then DA will according to 50% of the basic salary and gross salary will be computed as DA + basic salary. If basic salary greater than 5000 then DA according to 25% of basic salary and gross will be DA + basic.
#! /bin /sh # Write a shell script to read a basic salary of an employee, if basic salary is less than or equal to 5000 then DA will acco...
Program to display a simple message from a shell script.
#!/bin/sh # Program to display a simple message from a shell script. echo “first line in the script “ echo “Today date is 10 April ...
Followers
Powered by
Blogger
.
Blog Archive
▼
2012
(11)
▼
April
(11)
Write a shell script to read a basic salary of an ...
Write a shell script to read a basic salary of an ...
Write a shell script to read a number from user an...
Write a shell script that reads a pattern and a fi...
Write a shell script to check wether the file exis...
Write a shell program to copy, read two files name...
Program to print the name of the shell script sunning
A Shell script takes the input from the command li...
A script reads a pattern name & file name from a u...
A script reads a input from keyboard and print the...
Program to display a simple message from a shell s...
0 comments:
Post a Comment