Search Results

Search: Posts Made By: rits
3,866
Posted By rits
Thanks
Hey , Thank you everyone for detecting the error. :) :b:

As, you have seen this code, this runs for only numbers from 1 to 10 ,and accordingly takes input from the user .

I want to run this...
3,866
Posted By rits
Script producing error, Program to calculate maximum number
Hi folks,

Here i have written a shell script to calculate a maximum number from 10 numbers entered on command line.

max=0
echo Enter 10 numbers , one at a time
for i in 1 2 3 4 5 6 7 8 9 10...
10,087
Posted By rits
ok , so here's what I have done so far :- ...
ok , so here's what I have done so far :-

if[$# -eq 0]
then
for i in *.C
do
head input*.C > file.txt
cat > file.txt
echo Do you want to delete this file ? (Y/N)
read answer
if test{$read...
10,087
Posted By rits
More Info.
The main problem Im facing with this question is how to make the program pick up a C program in case no command line arguments are specified .

Code :

ls -lrt *.C
Please elaborate it .
7,568
Posted By rits
Help with Interactive / Non Interactive Shell script
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts...
10,087
Posted By rits
How to write script that behaves both in interactive and non interactive mode
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts...
Forum: Open Source 08-16-2009
339,964
Posted By rits
all hail vi editor !
all hail vi editor !
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy