Thanks Frank, it works well.
How about if now
I have an array:
The output should be like:
1321631,777,0125555555
1321631,888493,949494933
1321631,07774,560125666
1321631,,4560125666
So due to the 4th record no prefix in the predefined @prefix, so it is value is null.
I think:
i know above is wrong, please guide. Thanks
Thanks
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
Hello,
I had posted earlier about printing fields using AWK, but now I have a slightly different problem. I have text files in the format:
1*2,3,4,5
and wish to print the first, third, and fifth fields, including the asterisk and commas. In other words, after filtering it should look... (1 Reply)
from this input
WEBELSOLAR,29122009,1:1
WIPRO,15062010,2:3
ZANDUREALT,18012007,1:3
i want output as
WEBELSOLAR,20091229,1:1
WIPRO,20100615,2:3
ZANDUREALT,20070118,1:3
basically input is in ddmmyyyy format and i was to convert it to yyyymmdd format (1 Reply)
Dear All,
I would like to add values of a field, if the lines match in a certain field. Then I would like to divide the sum though the number of lines that have a matched field. This is the Input:
Input:
Test1 5
Test1 10
Test2 2
Test2 5
Test2 13
Test3 4
Output:
Test1 7.5
Test1 7.5... (6 Replies)
When parsing multiple fields in a file using AWK, how do you group by one of the fields and parse by delimiters?
to clarify
If a file had
tom | 223-2222-4444 , randofield
ivan | 123-2422-4444 , random filed
... | and , are the delimiters ...
How would you group by the social security... (4 Replies)
Hi,
Is there any short method to print from a particular field till another filed using awk?
Example File:
File1
====
1|2|acv|vbc|......|100|342
2|3|afg|nhj|.......|100|346
Expected output:
File2
====
acv|vbc|.....|100
afg|nhj|.....|100 (8 Replies)
i have file as with the below content
aaa.bbb.cc.dd
aaa.fff.bb
yyyyy.rrrrr.ggggg.iii
wwww.w.r.ty
i want the o/p as below
dd
bb
iii
ty
but i dont want to use awk. is there any other way to do this ? (5 Replies)
Hi experts,
I need to print the first field first then last two fields should come next and then i need to print rest of the fields.
Input :
a1,abc,jsd,fhf,fkk,b1,b2
a2,acb,dfg,ghj,b3,c4
a3,djf,wdjg,fkg,dff,ggk,d4,d5
Expected output:
a1,b1,b2,abc,jsd,fhf,fkk... (6 Replies)
Hi All,
I am trying to insert two columns in the following text. I tried awk but failed to achieve. Highly appreciate your help
DATETIME="28-Sep-2013;20:09:08;"
CONTROL="AB"
echo "Myfile.txt;11671;7824.90;2822.48"
The DATETIME will be inserted at the beginning and CONTROL will... (4 Replies)
Discussion started by: angshuman
4 Replies
LEARN ABOUT SUSE
xft-config
xft-config(1) General Commands Manual xft-config(1)NAME
xft-config - report Xft version, compiler, linker, and/or installation directory information
SYNOPSIS
xft-config { --exec-prefix[=local_prefix] | --prefix[=local_prefix] | --cflags | --libs } ...
xft-config --version
DESCRIPTION
xft-config reports information of interest to users and developers about the installed version of the X FreeType library, Xft(3). Depend-
ing on how it is invoked, xft-config reports the installed version of Xft, the compiler and linker flags that are required to successfully
compile and link C (or C-compatible) code that uses the library, and/or the directories used by the GNU Autotools to install its files.
Note that if the system's installed version of Xft came from an OS vendor or other third party, the actual location of its files may differ
from those reported by xft-config. The system adminstrator can also relocate Xft's files.
If invoked without any arguments, xft-config will print a usage message on standard error and exit.
OPTIONS --cflags
Report the compiler flags that are required to compile code that uses Xft symbols.
--exec-prefix[=local_prefix]
If specified without the parameter local_prefix, report the file specification prefix that Xft uses for installation of executable
files. If local_prefix is specified, it is used instead of the file specification prefix used for installation of executable files
by Xft and the value of the option argument specified with --prefix, if any, when compile and linker flags are reported (with
--cflags and --libs, respectively).
--libs Report the linker flags that are required to link code that uses Xft symbols.
--prefix[=local_prefix]
If specified without the parameter local_prefix, report the file specification prefix that Xft uses for installation of files. If
local_prefix is specified, it is used instead of the file specification prefix used for installation of files by Xft when compile
and linker flags are reported (with --cflags and --libs, respectively); also see --exec-prefix.
--version
Report the version of the Xft library installed on the system and exit.
OPERANDS
xft-config does not recognize any non-option arguments. At least one option must be specified.
EXIT STATUS
0 Information was successfully reported.
1 xft-config was invoked with invalid arguments, or no arguments at all.
AUTHOR
xft-config was written by Keith Packard. This manual page was written by Branden Robinson.
SEE ALSO Xft(3)Xft Version 2.1.14 xft-config(1)