Search Results

Search: Posts Made By: pgmfourms
3,194
Posted By pgmfourms
Mr Shamrock,i think its in Shell Programming and...
Mr Shamrock,i think its in Shell Programming and Scripting fourms only.
3,194
Posted By pgmfourms
Increment ABC-123 by 1!!
in a shell script, i hav a variable declared as "ABC-123".
i want to incriment th value ABC-123 by 1 so that the result will be
ABC-124.
Can anyone suggest a solution in shell scripting..
2,677
Posted By pgmfourms
Read from a file and compare
this is not a homework.......:mad:
unique number is user input(can be changed by command line argument)

#!/bin/sh
echo "number to be compared"
read t
var=`cat abc.lst`
for i in $var; do
if...
2,677
Posted By pgmfourms
Read from a file and compare
i want a shell script to read the a list of numbers from a file and compare with a unique number with the list.

FOR EXAMPLE :

abc.lst file contains d following
2343
3214
45654
563456...
Forum: Programming 05-15-2009
12,662
Posted By pgmfourms
Count the number of repeated characters in a given string
i have a string "dfasdfasdfadf"
i want to count the number of times each character is repeated..
For instance, d is repeated 4 times, f is repeated 4 times..

can u give a program in c
Forum: Programming 05-08-2009
8,652
Posted By pgmfourms
Rotate an array
Nice work Mr shamrock.

Thanks for the program
Forum: Programming 04-28-2009
8,652
Posted By pgmfourms
Rotate an array
consider an example where an array elements are a[]={101,2,45,25,7}
the output should be { 25,7,101,2,45}
i think swapping, modulo, looping will not be the correct solution
Forum: Programming 04-27-2009
8,652
Posted By pgmfourms
i want a generic program... like it should work...
i want a generic program...
like it should work for any give numbers.
Forum: Programming 04-27-2009
8,652
Posted By pgmfourms
Rotate an array
i have an array
a[]={1,2,3,4,5}
the output should be
a[]= {4,5,1,2,3}

please help me writin this program in c.
2,304
Posted By pgmfourms
removal of special character ^M
i am using HP-UX and i do not want to use dos2unix...
i have clearly specified as shell script..
2,304
Posted By pgmfourms
Removing ^M from a file
i have a file that has ^M character at the end of each line
there are atleast 150 files like this and i want to remove the special character(^M) .
i want a script which does this which takes...
Forum: Programming 04-22-2009
4,840
Posted By pgmfourms
Floating point Emulator
what is floating point emulator(FPE)?
where and why it is used?
Forum: Programming 04-22-2009
2,324
Posted By pgmfourms
can u send the complete program for the above...
can u send the complete program for the above said problem
Forum: Programming 04-22-2009
2,324
Posted By pgmfourms
Float issues
i am adding two floating point numbers and i want to store in a character pointer...

float f1 ;
float f2 ;
char *c = NULL;
printf("Enter 2 floating numbers\n");
scanf("%f...
Showing results 1 to 14 of 14

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