10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
2. Shell Programming and Scripting
Hi all,
I'm fairly new to this and learning along the way, so bare with me...
I'm trying to format the output from a script to be more read-friendly.
The output contains more servers and more processes but for as example it will do:
Server: Test1
... (4 Replies)
Discussion started by: Bobsonm
4 Replies
3. Shell Programming and Scripting
I have a script that looks like this:
dirname2=/usr/tmp/filelist/*/*
for dirname2 in /tmp/filelist/*/*; do (cd $dirname2/catalog ||echo "file does not exist" && echo "$dirname2" |cut -d '/' -f 7,8 && echo $i && ls -la |awk 'NR>3 {SUM += $5} END { print "Total number of kb " SUM }');done... (2 Replies)
Discussion started by: newbie2010
2 Replies
4. Shell Programming and Scripting
Dear Friends,
Need your help.
$cat input.txt
TITLE
Date:01-01-2011
Day: Friday
Details Particulares Qty
$
$
$
$
$
$more test.sh
cat input.txt | while read line
do
echo "${line}"
done
$
$ (5 Replies)
Discussion started by: anushree.a
5 Replies
5. Shell Programming and Scripting
Hi All,
I tried searching a lot about this but to no avail. I have a HTML file. I used
links -dump file_page.html > text_html.txt
What the above command gave me was a filtered text from the HTML file with tags removed. Now, the the output from the above command looked something like this:... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
6. Shell Programming and Scripting
Hello team,
I am running below command which is giving following output.
bash-3.00$ ps -eo pid,pcpu,args | sort +1n | grep -i java
12 0.0 grep -i java
8804 0.0 /opt/app/ccr/home/ccr/WebSphere/AppServer/java/bin/sparcv9/java -XX:+UnlockDiag
9241 0.0... (7 Replies)
Discussion started by: coolguyamy
7 Replies
7. Solaris
Hi,
How to find whether the server is running with half duplex or full duplex. I tried with the following command ndd -get /dev/ but am not getting any output,. Is the command correct?
Also let me know how to change from half to full duplex. (1 Reply)
Discussion started by: rogerben
1 Replies
8. Shell Programming and Scripting
Hi Gurus,
1. I have a script to run a SQL report. The script ran fine, but the format of the output is not satisfactory in that I see too much white space in between the lines in the output file (logfile). Please see the example below:
010192S.CD 01117CV000A.CD ... (6 Replies)
Discussion started by: syang68
6 Replies
9. Shell Programming and Scripting
Guys,
I have a script which hits the database and pulls the information that I need into files. Now I want to format these files to make them easy to read.
The sample format of the file will be like....
<Start_of_File>
Header1 .....xsdfsfa...adfa......
Header2 ....afefas .aefaefsdf...... (8 Replies)
Discussion started by: bperl
8 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am using a query like below in my shell script :
{
{
echo "set echo off"
echo "set head off"
echo "whenever sqlerror exit -1;
select NUMBER ||','||
FNAME ||','||
LOC ||','||
... (2 Replies)
Discussion started by: deepakgang
2 Replies