10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)
Discussion started by: Eric7giants
2. Shell Programming and Scripting
I am converting shell script to Perl. In shell I have a code
case $1 in
-P* | -p* )
export MM=`echo $2 | cut -c5-6`
export DD=`echo $2 | cut -c7-8`
export YY=`echo $2 | cut -c3-4`
export... (4 Replies)
Discussion started by: digioleg54
Hi, I am complete new to C programming and shell scripting. I just wrote a simple C code to calculate integral using trapezoid rule. I am prompting user to pass me No. of equally spaced points , N , upper and lower limit. My code looks as follows so far:
#include<string.h>... (2 Replies)
Discussion started by: bjhjh
4. Shell Programming and Scripting
I want to know how can i call oracle function from shell script code . My oracle function have around 5 input parameters and one return value.
for name in *.csv;
echo "connecting to DB and start processing '$name' file at "
echo "csv file name=$x"
sqlplus -s scoot/tiger <!... (2 Replies)
Discussion started by: Balraj
5. Shell Programming and Scripting
I am getting Segmentation fault at below function call in my script:
sqlplus -s / <<end | grep KEEP | sed 's/KEEP//;s///g'
select 'KEEP' ,table_name from all_synonyms where upper(synonym_name)= '$1';
echo " SQL OUTPUT IS :: $x"
I am getting output of... (1 Reply)
Discussion started by: IB_88
6. Shell Programming and Scripting
I've 2 shell scripts viz., CmnFuncs.ksh and myScript.ksh.
1st script contains all common functions and its code is as below:
export Rundt=`date +%Y%m%d`
2nd script is invoking the above one and I expect to use the RunDt variable... (8 Replies)
Discussion started by: njny
7. Red Hat
please help me in this script
shell script :1
echo "this is first file"
d=13 (2 Replies)
Discussion started by: ponmuthu
8. Shell Programming and Scripting
Here is the following code :
# gcc -c test firstprog.c
the above command will generate a executable file called "test " in which ever directory it is run.
Assuming It will also return a value.
2. In the below SCRIPT . test is a file generated by compiling a c program... (3 Replies)
Discussion started by: Vabiosis
9. Shell Programming and Scripting
i have a function written in one shell script and i want to call that function in another shell script and use the value returned by that script.
can any one suggest me how can i do that?
Rajesh.P (4 Replies)
Discussion started by: rajesh.P
10. Shell Programming and Scripting
i want to call a oracle function in my shell script (4 Replies)
Discussion started by: dineshr85