Hi all,
I would like to change the extended ascii code ( 128 - 255).
I tried to change LC_ALL and LANG in current session ( values from locale -a) and for no good.
Thanks. (0 Replies)
Hi, I have a accentuated letter (ö) in a script for an Installer. It's a file name. This is not working and I'm told to try using the octal value for the extended ascii character. Does anyone no how to do this? If I had the word "filförval", can I just put in the value between the letters, like... (9 Replies)
Hi All,
I'm trying to send extended ascii characters to my HP2055 as part of PCL printer control codes. What I want to do is select a bar code font, print the bar code and reset the printer to the default font.
Selecting the bar code font works good. Printing the bar code goes almost ok too. ... (5 Replies)
Hi,
Is there a way to identify the lines in a file having extended ascii characters and display the same?
For instance I have a file abc.txt having below data
aaa|bbb|111|This is first line
aaa|bbb|222|This is secõnd line
aaa|bbb|333|This is third line
aaa|bbb|444|This is foùrth line... (3 Replies)
We are getting extended Ascii characters in the input file and my requirement is to search and replace them with a space. I am using the following command
LANG=C sed -e 's// /g'
It is doing a good job, but in some cases it is replacing the extended characters with two spaces. So my input... (12 Replies)
Hi,
I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Hi All,
I am trying to remove (SELECTIVE - passed as argument) Extended ASCII using Awk based on adhoc basis. Can you please let me know how to do it. I have to implement this using awk only.
Thanks & Regads (14 Replies)
I am working with a log file that I am trying to clean up by removing non-English ASCII characters. I am using Bash via Cygwin on Windows.
Before I start I set:
export LC_ALL=C
I clean it up by removing all non-English ASCII characters with the following command;
grep -v $''... (4 Replies)
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Hello,
I am on AIX.
When I encounter extended ascii characters and special characters on a file I need to print..
Byte position, actual character and line number.
Is there a simple command that can give me the above result ?
Thanks in advance (38 Replies)
Discussion started by: rosebud123
38 Replies
LEARN ABOUT CENTOS
fgetxattr
GETXATTR(2) System calls GETXATTR(2)NAME
getxattr, lgetxattr, fgetxattr - retrieve an extended attribute value
SYNOPSIS
#include <sys/types.h>
#include <attr/xattr.h>
ssize_t getxattr (const char *path, const char *name,
void *value, size_t size);
ssize_t lgetxattr (const char *path, const char *name,
void *value, size_t size);
ssize_t fgetxattr (int filedes, const char *name,
void *value, size_t size);
DESCRIPTION
Extended attributes are name:value pairs associated with inodes (files, directories, symlinks, etc). They are extensions to the normal
attributes which are associated with all inodes in the system (i.e. the stat(2) data). A complete overview of extended attributes concepts
can be found in attr(5).
getxattr retrieves the value of the extended attribute identified by name and associated with the given path in the filesystem. The length
of the attribute value is returned.
lgetxattr is identical to getxattr, except in the case of a symbolic link, where the link itself is interrogated, not the file that it
refers to.
fgetxattr is identical to getxattr, only the open file pointed to by filedes (as returned by open(2)) is interrogated in place of path.
An extended attribute name is a simple NULL-terminated string. The name includes a namespace prefix - there may be several, disjoint
namespaces associated with an individual inode. The value of an extended attribute is a chunk of arbitrary textual or binary data of spec-
ified length.
An empty buffer of size zero can be passed into these calls to return the current size of the named extended attribute, which can be used
to estimate the size of a buffer which is sufficiently large to hold the value associated with the extended attribute.
The interface is designed to allow guessing of initial buffer sizes, and to enlarge buffers when the return value indicates that the buffer
provided was too small.
RETURN VALUE
On success, a positive number is returned indicating the size of the extended attribute value. On failure, -1 is returned and errno is set
appropriately.
If the named attribute does not exist, or the process has no access to this attribute, errno is set to ENOATTR.
If the size of the value buffer is too small to hold the result, errno is set to ERANGE.
If extended attributes are not supported by the filesystem, or are disabled, errno is set to ENOTSUP.
The errors documented for the stat(2) system call are also applicable here.
AUTHORS
Andreas Gruenbacher, <a.gruenbacher@bestbits.at> and the SGI XFS development team, <linux-xfs@oss.sgi.com>. Please send any bug reports or
comments to these addresses.
SEE ALSO getfattr(1), setfattr(1), open(2), stat(2), setxattr(2), listxattr(2), removexattr(2), and attr(5).
Dec 2001 Extended Attributes GETXATTR(2)