Hi,
Not really sure whether this question should go to this forum but am giving it a shot.
I have compiled a simple C program test.c.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int a;
int test()
{
a=a+1;
return a;
}
When I run a make command, I get this:
... (2 Replies)
hi ,
i used ls -ltr | cut -f 1 > \dev\tty
but all teh coulmns r getting printed instead of only one........how can i resolve this?
prob 2 :
wud be able start cutting from last field......supposing in the case of dyanmic list.i dunno the field number of last column.......so is... (3 Replies)
I seem to be fighting bash's shell expansions..
I set this variable:
CMD="export MVAR=\"1 2 3\""
if I try to run it, it is clear the shell is parsing along the spaces of the contents of MYVAR:
> $CMD
+ export 'MYVAR="1' 2 '3"'
+ MYVAR='"1'
-bash: export: `2': not a valid identifier... (3 Replies)
Hi.,
I am not able to replace the string with another string using gsub fn of awk command.
My code:
awk 'BEGIN gsub(004,IND,004)' p.txt
and my i/p file p.txt is of the format:
av|004|adkf|Kent,004|s
av|005|ssdf|Kd,IT park|s
.
.
.
and my desired o/p should be of : (13 Replies)
When I try to run the history command from the prompt i get the following error:
$ history
ksh: cd: 0403-011 The specified substitution is not valid for this command.
ON running history with a parameter I get the following
$ history -10
ksh: cd: 0403-008 The number of parameters... (6 Replies)
I am running nm for a file.
the command is
nm -f libC.a
but it gives below error
nm: libC.a: 0654-203 Specify an XCOFF object module.
any solution ?
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (2 Replies)
Dear Brothers!
Need your help for the case where I am running one command on prompt and its giving us the correct output, but when i use the same command from shell its directs no output.:wall:
the command on command prompt is
ls -ltrh * | nawk '{if ($5~ '/$'M'/') print $9}' | grep -v... (1 Reply)
Hello,
i have installed a package by using the command
sudo rpm -i filepackage.rpm
package filepackage is already installed
when i try to remove it, i get an error saying "is not installed":
sudo rpm -e filepackage.rpm
error: package filepackage is not installed
How can... (4 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)
Whenever the below command is being executed by a scheduler at UNIX environment, we are getting below error
cd /tmp/log
find . -ignore_readdir_race ! -name . -prune -iname 'XYZ*' -type f -mtime +4 -printf "%f\n"
./tmpfile.script_name.2.31885.201906071336.tmp': No such file or directory... (2 Replies)
Discussion started by: Anirban2208
2 Replies
LEARN ABOUT CENTOS
locale::gettext_pp
Locale::gettext_pp(3) User Contributed Perl Documentation Locale::gettext_pp(3)NAME
Locale::gettext_pp - Pure Perl Implementation of Uniforum Message Translation
SYNOPSIS
use gettext_pp (:locale_h :libintl_h);
gettext $msgid;
dgettext $domainname, $msgid;
dcgettext $domainname, $msgid, LC_MESSAGES;
ngettext $msgid, $msgid_plural, $count;
dngettext $domainname, $msgid, $msgid_plural, $count;
dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES;
pgettext $msgctxt, $msgid;
dpgettext $domainname, $msgctxt, $msgid;
dcpgettext $domainname, $msgctxt, $msgid, LC_MESSAGES;
npgettext $msgctxt, $msgid, $msgid_plural, $count;
dnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count;
dcnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count, LC_MESSAGES;
textdomain $domainname;
bindtextdomain $domainname, $directory;
bind_textdomain_codeset $domainname, $encoding;
my $category = LC_CTYPE;
my $category = LC_NUMERIC;
my $category = LC_TIME;
my $category = LC_COLLATE;
my $category = LC_MONETARY;
my $category = LC_MESSAGES;
my $category = LC_ALL;
DESCRIPTION
The module Locale::gettext_pp is the low-level interface to message translation according to the Uniforum approach that is for example used
in GNU gettext and Sun's Solaris.
Normally you should not use this module directly, but the high level interface Locale::TextDomain(3) that provides a much simpler
interface. This description is therefore deliberately kept brief. Please refer to the GNU gettext documentation available at
<http://www.gnu.org/manual/gettext/> for in-depth and background information on the topic.
FUNCTIONS
The module exports by default nothing. Every function has to be imported explicitely or via an export tag ("EXPORT TAGS").
gettext MSGID
See "FUNCTIONS" in Locale::Messages.
dgettext TEXTDOMAIN, MSGID
See "FUNCTIONS" in Locale::Messages.
dcgettext TEXTDOMAIN, MSGID, CATEGORY
See "FUNCTIONS" in Locale::Messages.
ngettext MSGID, MSGID_PLURAL, COUNT
See "FUNCTIONS" in Locale::Messages.
dngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT
See "FUNCTIONS" in Locale::Messages.
dcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY
See "FUNCTIONS" in Locale::Messages.
pgettext MSGCTXT, MSGID
See "FUNCTIONS" in Locale::Messages.
dpgettext TEXTDOMAIN, MSGCTXT, MSGID
See "FUNCTIONS" in Locale::Messages.
dcpgettext TEXTDOMAIN, MSGCTXT, MSGID, CATEGORY
See "FUNCTIONS" in Locale::Messages.
npgettext MSGCTXT, MSGID, MSGID_PLURAL, COUNT
See "FUNCTIONS" in Locale::Messages.
dnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT
See "FUNCTIONS" in Locale::Messages.
dcnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT, CATEGORY
See "FUNCTIONS" in Locale::Messages.
textdomain TEXTDOMAIN
See "FUNCTIONS" in Locale::Messages.
bindtextdomain TEXTDOMAIN, DIRECTORY
See "FUNCTIONS" in Locale::Messages.
bind_textdomain_codeset TEXTDOMAIN, ENCODING
nl_putenv ENVSPEC
See "FUNCTIONS" in Locale::Messages.
CONSTANTS
You can (maybe) get the same constants from POSIX(3); see there for a detailed description
LC_CTYPE
LC_NUMERIC
LC_TIME
LC_COLLATE
LC_MONETARY
LC_MESSAGES
LC_ALL
See "CONSTANTS" in Locale::Messages for more information.
EXPORT TAGS
This module does not export anything unless explicitely requested. You can import groups of functions via two tags:
use Locale::gettext_pp (':locale_h')
Imports the functions that are normally defined in the C include file locale.h:
gettext()
dgettext()
dcgettext()
ngettext()
dngettext()
dcngettext()
pgettext()
Introduced with libintl-perl 1.17.
dpgettext()
Introduced with libintl-perl 1.17.
dcpgettext()
Introduced with libintl-perl 1.17.
npgettext()
Introduced with libintl-perl 1.17.
dnpgettext()
Introduced with libintl-perl 1.17.
dcnpgettext()
Introduced with libintl-perl 1.17.
textdomain()
bindtextdomain()
bind_textdomain_codeset()
use Locale::gettext_pp (':libintl_h')
Imports the locale category constants:
LC_CTYPE
LC_NUMERIC
LC_TIME
LC_COLLATE
LC_MONETARY
LC_MESSAGES
LC_ALL
AUTHOR
Copyright (C) 2002-2009, Guido Flohr <guido@imperia.net>, all rights reserved. See the source code for details.
This software is contributed to the Perl community by Imperia (<http://www.imperia.net/>).
SEE ALSO Locale::TextDomain(3pm), Locale::Messages(3pm), Encode(3pm), perllocale(3pm), POSIX(3pm), perl(1), gettext(1), gettext(3)POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 1030:
=cut found outside a pod block. Skipping to next block.
perl v5.16.3 2014-06-10 Locale::gettext_pp(3)