9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Say I have this line:
read -p "Enter 3 numbers: " num1 num2 num3;
I want to write a while loop that repeatedly asks for input if the number of inputs entered is not equal to 3.
I don't know the correct command to find the number of inputs entered. Help, please? (4 Replies)
Discussion started by: jejemonx
4 Replies
2. Shell Programming and Scripting
Hello
Does the unix korn shell provide a function to convert number entered in command line argument to text or Character so that in next step i will convert Chr to Hex (6 Replies)
Discussion started by: aadityapatel198
6 Replies
3. Shell Programming and Scripting
how to check that the "file path" entered by the user has the valid file. (6 Replies)
Discussion started by: Rashid Khan
6 Replies
4. Shell Programming and Scripting
Hello Guys,
I am writing a script which check each line for how many Uppercase and Lowercase letter of a given file. Please check my script as follow:
l=0
while read line
do
echo Line `expr $l + 1` has ` tr -cd "" < $line | wc -c` uppercase letters and
`tr -cd "" < $line | wc -c`... (3 Replies)
Discussion started by: kasparov
3 Replies
5. Shell Programming and Scripting
Hello, I am writing a script and in this script, I want to be able to have the script continue running if the correct word is not entered...
Here is an excerpt from me script:
read request
if ;
then
echo "You have asked for the System Temperature..."
cat... (1 Reply)
Discussion started by: niconico96
1 Replies
6. Shell Programming and Scripting
I need the date validation. I searched in the google but i didn't find my requirements.
requirements:
1) user has to enter the date in YYYY/MM/DD format
2) MM validations
3) DD validations.
and if the month is april it should allow 30 days only and for May month it should allow 31 days like... (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
7. Programming
hi,
I'm trying to create a program that will read a file and then check the file for each letter of the alphabet and then output the letter and the number of times it appears in the file, into a new file... this is what i have so far but it's not working.. if anyone could help that would be nice!... (10 Replies)
Discussion started by: svd
10 Replies
8. Shell Programming and Scripting
Hi,
how to do that ? I mean only print it but not execute. I'm using putty to interact with ksh.
(in windows cmd up arrow does the job)
thanks
vilius (5 Replies)
Discussion started by: vilius
5 Replies
9. Shell Programming and Scripting
Hi everyone,
Can someone possibly help me with this problem I am having please.
I wrote a Korn shell script to manipulate currency amounts in a way that a person could use this script to determine the minimum number of coins required to make a certain amount.
for example when entered on the... (2 Replies)
Discussion started by: bashirpopal
2 Replies