Hi folks!
I'm new in this forum and in the UNIX-world too!!
I've got a real problem:
I have to read out datas like name and e-mail-adress from a Windows- Server from the active directory and put this information into a file.
This file should be moved (or copied) on a Unix- Server...
But I... (3 Replies)
I have a text file with rows of information (it is basically a ls command information(o/p from ls command))
I need to remove the lines ending with a .cnt extension and keep the lines ending with .zip extension, how to accomplish this.
I also only need the date,size and name of the file from every... (2 Replies)
HI
I'm looking to delete lines ending with .tk from below data file
---------
abc.tk
mgm.tk
dtk
mgmstk
------
I have written below code
----
sed '/.tk *$/d' dat_file.txt > temp.txt
----
But its deleting all the lines ending with tk. I need to delete only the lines ending .tk
my... (5 Replies)
First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting.
First, this is what's running:
This is the error when jobs are run or the... (0 Replies)
Hi,
I'm trying to use sed within a shell script (bash, running ubuntu). The command works fine from the command line, but when I use it within the script, rather than creating a file with the name I've specified, it creates one that ends with a question mark '?' when you use ls, e.g.... (3 Replies)
Hi
Current SCO Unix 5.05
I see that there are filenames with @ at the end of file name for example
in the /usr/lib there is file lpadmin@
what does the @ represent when it is at the end of the file name
Thanks (4 Replies)
Hi, I have a series of files (upwards of 500) the filename format is as follows
CC10-1234P1999.WGS84.p190
each of this files is in a directory named for the file but excluding the extension.
Now the last three numeric characters, in this case 999, can be anything from 001 to 999, I need to... (3 Replies)
Hi, I have multiple large files which consist of the below format:
I am trying to write an awk or sed script to remove all occurrences of the 00 record except the first and remove all of the 80 records except the last one.
Any help would be greatly appreciated. (10 Replies)
Hi,
I have numerous files which have data in the following format
A|B|123.|Mr.|45.66|33|zz
L|16.|33.45|AC.|45.
I want to remove decimal point only if it is last character in a number.
O/p should be
A|B|123|Mr.|45.66|33|zz
L|16|33.45|AC.|45
I tried this
sed -e 's/.|/|/g'
Problem... (6 Replies)
Hello Sirs,
I'm trying to understand what does it mean when a file name ends with ".$$"
Like in the below snippet.
if ; then
cat /tmp/input0.$$ >> $filename
Please help me understand it. Thanks in advance. (4 Replies)
Discussion started by: rookee
4 Replies
LEARN ABOUT LINUX
getfattr
GETFATTR(1) File Utilities GETFATTR(1)NAME
getfattr - get extended attributes of filesystem objects
SYNOPSIS
getfattr [-hRLP] -n name [-e en] pathname...
getfattr [-hRLP] -d [-e en] [-m pattern] pathname...
DESCRIPTION
For each file, getfattr displays the file name, and the set of extended attribute names (and optionally values) which are associated with
that file.
The output format of getfattr -d is as follows:
1: # file: somedir/
2: user.name0="value0"
3: user.name1="value1"
4: user.name2="value2"
5: ...
Line 1 identifies the file name for which the following lines are being reported. The remaining lines (lines 2 to 4 above) show the name
and value pairs associated with the specified file.
OPTIONS
-n name, --name=name
Dump the value of the named extended attribute extended attribute.
-d, --dump
Dump the values of all extended attributes associated with pathname.
-e en, --encoding=en
Encode values after retrieving them. Valid values of en are "text", "hex", and "base64". Values encoded as text strings are enclosed
in double quotes ("), while strings encoded as hexidecimal and base64 are prefixed with 0x and 0s, respectively.
-h, --no-dereference
Do not dereference symlinks. Instead of the file a symlink refers to, the symlink itself is examined.
-m pattern, --match=pattern
Only include attributes with names matching the regular expression pattern. The default value for pattern is "^user\.", which
includes all the attributes in the user namespace. Specify "-" for including all attributes. Refer to attr(5) for a more detailed dis-
cussion of namespaces.
--absolute-names
Do not strip leading slash characters ('/'). The default behaviour is to strip leading slash characters.
--only-values
Dump out the extended attribute value(s) only.
-R, --recursive
List the attributes of all files and directories recursively.
-L, --logical
Logical walk, follow symbolic links to directories. The default behaviour is to follow symbolic link arguments, and to skip symbolic
links encountered in subdirectories. Only effective in combination with -R.
-P, --physical
Physical walk, do not follow symbolic links to directories. This also skips symbolic link arguments. Only effective in combination
with -R.
--version
Print the version of getfattr and exit.
--help
Print help explaining the command line options.
-- End of command line options. All remaining parameters are interpreted as file names, even if they start with a dash character.
AUTHOR
Andreas Gruenbacher, <a.gruenbacher@bestbits.at> and the SGI XFS development team, <linux-xfs@oss.sgi.com>.
Please send your bug reports or comments to these addresses.
SEE ALSO setfattr(1), and attr(5).
Dec 2001 Extended Attributes GETFATTR(1)