Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: rits
3,210
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,210
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...
8,234
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...
8,234
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 .
6,559
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...
8,234
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
248,428
Posted By rits
all hail vi editor !
all hail vi editor !
Showing results 1 to 7 of 7

 

Featured Tech Videos

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