hello everybody,
here is my problem:
________________________________________
#include <stdio.h>
int main()
{
int i=10;
printf("value is %i",i);
return 0;
}
_________________________________________
when i compile and execute, nothing appears on screen!!
but if i replace the printf... (2 Replies)
Hi Friends,
Can anyone guide me how to compute sum of column4 from the below file x using awk command? when i do using awk I'm getting sum 7482350198352648.000000 which is not accurate.
$ cat x
56,232,dfgjkhdfj,,56,anand
56,22,dfgjkhdfj,7482347823453123.97834 ,56,Khan
56,23,dfgjkhdfj, ... (6 Replies)
Hi All,
I've one problem with printf.
Iam printing some field values from one file "file.txt" using printf, which is resulting anonymously.
awk '{
printf (" %-6s\n", substr($0,18,23))
}' file.txt
But the same printf is workin fine as per my expectation, if I try as below:
... (1 Reply)
hi all,
im having a problem with using perl printf. my requirement is to print a string (like ) at the right most end of the screen.
i tried this perl script, but it fails with an error;
#!/usr/bin/perl
use strict;
use warnings;
my $scrW = 0;
my $str = `stty size`; # get the... (5 Replies)
I have the following code:
$ awk '{ printf "%-10s %s\n", $1, $2, $3, $4, $5, $5, $6 }' file
i can only print the first 2 elements ($1,$2). How can i print all the elements to appear like this:
aardvark 5555553 jhfjhfjkg efiigig ejkfjkej wjkdjk
alpo-net 5553412 ... (2 Replies)
Hi,
I've got a basic problem using printf statement in awk.
I want to write float values with always 8 characters width.
Examples :
1.345678
12.45678
123.4567
1234.678
-23.5678
-2.45678
-23456.8
.....
I cannot find the right printf format %8.1f, %7.5f....
Can anyone help ?... (4 Replies)
In one of the scripts I am using pintf function as following
printf "%s%s%s\n" "$f1" "$f2" "$f3"
f3 variable contains a string of 10 characters. However it has value first 7 character and last 3 characters are empty.
Example
Aaaaaaa<3 spaces>
bbbbbbb<3 spaces>
ccccccc<3 spaces>... (4 Replies)
i have written small script as follows:
name="hi hello"
printf "%-20s" $name
This gives me strange output. -20s format is applied on both word of string. i.e it displays both word hi and hello in space of 20 length.
I want to display entire string "hi hello" in length of 20 space.
plz... (2 Replies)
Hi ALL,
I am using SunOS 5.9 and KSH(bin/ksh)
The problem am facing is
error message diaplyed on screen
printf: 12099415.79 not completely converted
printf: + expected numeric value
printf: 11898578.29 not completely converted
When i try printing with
The output is... (6 Replies)
I am running plsql using printf on a shell, but i am getting some strange error, can someone point what exactly am i missing,
$ echo $SHELL
/bin/bash
$ printf "
> SET serveroutput ON trimspool on feed off echo off
> declare
> p_val number;
> d_val varchar2(10);
> begin
> SELECT... (1 Reply)
Discussion started by: kamauv234
1 Replies
LEARN ABOUT SUNOS
chicken-bug
CHICKEN-BUG(1) General Commands Manual CHICKEN-BUG(1)NAME
chicken-bug - generates a bug report from user input
SYNOPSIS
chicken-bug [ filename | OPTION ... ]
OPTIONS -help Show usage information.
-to-stdout
Write bug report to standard output instead of writing it to a file.
- Read user input from standard input, even if files are given on the command line.
DESCRIPTION
chicken-bug generates a bug report file that collects user-input, optional files and system information obtained from the installed CHICKEN
executables and libraries. Non-option arguments given on the command line are inserted into the bug report. If no option is given, or if -
has been passed on the command line, then a description of the problem is read from standard input, until EOF (CTRL-D) or a line consisting
only of "." (period) is read.
The bug report will be written to a file in the current directory, which should be sent to CHICKEN maintainers as it contains various use-
ful bits of information that make it easier to classify the problem described.
Bug reports should be as detailed as possible. It is also very helpful to include code that reproduces the problem. The more detailed the
input and the more thorough the description is, the easier you make it for the CHICKEN developers to help you.
BUGS
Submit bug reports by e-mail to chicken-janitors@nongnu.org
AUTHOR
The CHICKEN Team.
SEE ALSO chicken(1)
19 Sep 2001 CHICKEN-BUG(1)