10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a quick and easy way to comment out multi lined print statements? something like this?
printf("3408 strings_line_tokens %s \n",
strings_line_tokens); (6 Replies)
Discussion started by: cokedude
2. Shell Programming and Scripting
I have a requirement like this.
1.GET ALL TABLE NAME (just table name) keep in file
2.Read line by line and get the count of table from tablename files.
tablename detail has a sql statement "db2 select tabname from syscat.tables" (1 Reply)
Discussion started by: netdbaind
3. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
4. UNIX for Dummies Questions & Answers
hi, I have a litle problem i wish to excute this comand :
./test.sh -e txt /home -l a
so what it says is that "-e" shows me all the extenions that are ".txt" in "home" this works but then i wish that "-l" will show all files begining in this case with the letter "a" . Both comands work... (5 Replies)
Discussion started by: samirboss
5. Shell Programming and Scripting
I want to collect info from a no. of servers whether there grub.conf contain "elevator" parameter or not.
What I want is
sudo cat /etc/grub.conf | grep -q "elevator=noop"; echo $?
If output is "0", I want name of that host in a file called "present"
if its not "0", I want that... (4 Replies)
Discussion started by: stunn3r
6. Web Development
I have set the sh file to chmod 755
i only able to print the output but cannot execute the copy why?
Below is the code for sh file
cp hello.sh helloworld.sh
Below is my code for php.
<?php echo '<p>Hello</>'; ?>
<?php shell_exec('sh... (4 Replies)
Discussion started by: zhengkoon8
7. Shell Programming and Scripting
how can we execute multiple statements in
in else condition i have multiple statements
but it executing only one statement
is there any way to execute multiple statements (4 Replies)
Discussion started by: nani1984
8. Shell Programming and Scripting
Please help me. I have been doing this for several hours.
Here is the code
echo a b c d >> file.txt
echo 1111 >> file.txt
The reason I want the two echo is because I want these statements printed on multiple lines. I keep getting error .
First it tells me... (2 Replies)
Discussion started by: asemota
9. Shell Programming and Scripting
Please help me to write a shell script to execute the below sql query.
select c.account_no,b.bill_no,a.pay_type,(b.total_due + b.recvd + b.adjusted + b.disputed + b.transferred) as amt_not_billed,d.cash_on_delivery,
(select j.bill_no from
where... (1 Reply)
Discussion started by: girish.raos
10. UNIX for Dummies Questions & Answers
I am trying to test the exit status of the cleartool lsvtree statement below, but it doesn't seem to be working due to the tail pipe, which it is testing instead. Is there a way around this without adding a tonne of new code?
cleartool lsvtree $testlocation/$exe_name | tail -15
... (10 Replies)
Discussion started by: topcat8