10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file like below
position1 0 7802 7802 0 client1 - -
position1 8 8032 8032 0 client1 ... (7 Replies)
Discussion started by: manas_ranjan
7 Replies
2. UNIX for Beginners Questions & Answers
I am receiving the below output in text format. The output is converted to HTML table using the code mentioned below
output in text
LogDate DayOfWeek/Hours _0_ _1_ _2_ _3_ _4_ _5_ _6_ _7_ _8_ _9_ _10_ _11_ _12_ _13_ _14_ _15_ _16_ ... (3 Replies)
Discussion started by: Dumpi16
3 Replies
3. Programming
Hi,
Struggling with single quotes, double quotes, etc.
I want to print a header line, followed by lines with actual values, based on a print option.
In real life it is going to be something like 15 print options and 50 values.
Output will be 1 header and several value lines.
In this example... (5 Replies)
Discussion started by: ejdv
5 Replies
4. Shell Programming and Scripting
Hi,
I have a file where I would like to add a prompt type object_name
statement before every create commnad
create or replace force view test_view_01
(
col1
col2
col3
)
as
(select a,b,c from sometable );
create or replace view test_view_02
(
col4
col5
col6
)
as (5 Replies)
Discussion started by: jville
5 Replies
5. UNIX for Dummies Questions & Answers
I have treid searching for what I thought would be a common question...but to no avail.
I have to long numbers (4-8) digits. how can I format them so they are printed as 1,234,567 rather than 1234567? I have no idea where to start, have played with varying types of awk, print, substr.
Also,... (10 Replies)
Discussion started by: nhatch
10 Replies
6. Shell Programming and Scripting
echo $bbsize
1.5
echo $fillpercent
.95
echo $bbsize | awk '{printf "%.2f\n",$0*$fillpercent}'
2.25
echo $bbsize | awk '{printf "%.2f\n",$0*.95}'
1.42
1.42 is what I'm expecting...
echo $blocksize
4096
echo $bbsize | awk '{printf "%.2f\n",$0*$blocksize}'
2.25
echo $bbsize |... (3 Replies)
Discussion started by: xgringo
3 Replies
7. Shell Programming and Scripting
Hi friends..
I am confused about awk printf option..
I have a comma separated file
88562848,21-JAN-08,2741079, -1188,-7433,TESTING
88558314,21-JAN-08,2741189, -1273,-7976,TESTING
and there is a line in my script ( written by someone else)
What is the use of command?
I guess... (10 Replies)
Discussion started by: clx
10 Replies
8. Shell Programming and Scripting
I am trying to display a number with commas
printf "%d\n" 323232
printf "%d\n" 1234567
I want the output to be:
323,232
1,234,567
I tried to change %d to other formats and could find the solution.
any idea? (7 Replies)
Discussion started by: ynixon
7 Replies
9. UNIX for Dummies Questions & Answers
I am trying to display a number with commas
printf "%d\n" 323232
printf "%d\n" 1234567
I want the output to be:
323,232
1,234,567
I tried to change %d to other formats and could find the solution.
any idea? (7 Replies)
Discussion started by: ynixon
7 Replies
10. Shell Programming and Scripting
Hi,
Can anybody tell me why this function returns 49?
printf "%d\n" \'10
I don't understand what the \ and ' are there for?
thanks!!! (1 Reply)
Discussion started by: m0nk3y
1 Replies