10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
i have below code which i am running and the out i want should be in red color
echo "<html>" >> ERROR_FILE.html
echo "<Body>" >> ERROR_FILE.html
nawk 'BEGIN{print "<table border="1">"}
{print "<tr>";
print "<TD colspan="0" bgcolor="#DC143C">";
for(i=1;i<NF;i++)... (5 Replies)
Discussion started by: mirwasim
5 Replies
2. Programming
How to get the user name of the Operating system from an Informix 4gl program.
eg:-
-rw-r----- 1 gkuser srth1 292 Jul 27 19:28 u1.txt
i need to get gkuser as the result? (0 Replies)
Discussion started by: enriquegm82
0 Replies
3. Shell Programming and Scripting
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Discussion started by: saku
8 Replies
4. Shell Programming and Scripting
Hi,
I am writing a script, and I need to incorporate some logic where I can find out the unix username of the person who is executing the script.
The issue is , a particular user could have "sesu" ed into a group id. for eg. root, and then executed the script. In that case, instead of root,... (5 Replies)
Discussion started by: neil.k
5 Replies
5. Shell Programming and Scripting
hi
i am trying the below code for the following
|_
| |_
| |_ |_
| |_ |_ |_
| |_ |_ |_ |_
and for this code also
*
* *
* * *
* * * *
* * * * *
!/bin/bash
#i = "*" (2 Replies)
Discussion started by: kullu
2 Replies
6. Shell Programming and Scripting
Hi Guys,
Is there a way to write a recursive function in unix?
Thanks for your help in advance,
Regards,
Magesh. (1 Reply)
Discussion started by: mac4rfree
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
i have two functions in my script.
question()
{
num=`ps -e | grep ps | awk -F" " '{print $1}'`
qno=`expr $num % 10`
grade=grade1
cat grade1/$qno
answer ${grade} ${qno}
}
answer()
{
grade=$1
qno=$2
ansno=`wc -l $grade/ans/$qno | cut -d' ' -f1`
j=0
while
do (1 Reply)
Discussion started by: Usha Shastri
1 Replies
8. Programming
Hi everybody,
first of all i apologize if my thread's title doesn't make much sense,but i coudn't find a more appropriate name :)
Then i apologize about my question,which probably will sound trivial for you :) :)
I am working on a program which is being tested in Linux but the final target is... (2 Replies)
Discussion started by: Zipi
2 Replies
9. Programming
Hi,
I am windows programer. I have very basic knowledge of Unix OS.
I have written an application in Windows which consists of Win32 API namely WideCharToMultiByte(..) and MultiByteToWideChar(..).
I am interested to deploy my application in unix platform henceforth I need to know IS... (1 Reply)
Discussion started by: dayakarr
1 Replies
10. Programming
How to get the user name of the Operating system from a c program.
eg:-
-rw-r----- 1 gkuser srth1 292 Jul 27 19:28 u1.txt
i need to get gkuser as the result? (3 Replies)
Discussion started by: Rajeshsu
3 Replies