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,
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)
I am having a major problem with printf, The more I pad it, the less I see :(
The problem is in the first function, report
Am I ruining output somewhere? I wont print out the names propely, it cuts them off or deletes them completely :(
#!/bin/bash
report()
{
printf "%-10s" STUD# ... (2 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)
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)
My requirement is need to add spaces to the string with the dynamic value to printf... this is a part of shell script ..which i have , the length is not static ...
length=15
value="1234567890"
printf "%-"$length"s\n" "$value";
The result it is printing is ... i am not sure y it is... (19 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 CENTOS
git-sh-i18n
GIT-SH-I18N(1) Git Manual GIT-SH-I18N(1)NAME
git-sh-i18n - Git's i18n setup code for shell scripts
SYNOPSIS
. "$(git --exec-path)/git-sh-i18n"
DESCRIPTION
This is not a command the end user would want to run. Ever. This documentation is meant for people who are studying the Porcelain-ish
scripts and/or are writing new ones.
The 'git sh-i18n scriptlet is designed to be sourced (using .) by Git's porcelain programs implemented in shell script. It provides
wrappers for the GNU gettext and eval_gettext functions accessible through the gettext.sh script, and provides pass-through fallbacks on
systems without GNU gettext.
FUNCTIONS
gettext
Currently a dummy fall-through function implemented as a wrapper around printf(1). Will be replaced by a real gettext implementation in
a later version.
eval_gettext
Currently a dummy fall-through function implemented as a wrapper around printf(1) with variables expanded by the git-sh-
i18n--envsubst(1) helper. Will be replaced by a real gettext implementation in a later version.
GIT
Part of the git(1) suite
Git 1.8.3.1 06/10/2014 GIT-SH-I18N(1)