thank you all for youl help! I always get the best answers from this forum!
There is only one occurrence of both RMS and GAP in the file and both in fixed field locations.
Spacial thanks to RavinderSingh13
Following his advise I did something slightly different since I didn't want to modify the name of the file in the end.
Thank you all for your time and help
hi all,
can u please help me in finding all ksh file in directory and including all subdirectories and then copy those files into another directory.
thanks in advance
-bali (4 Replies)
I got a sample file like this.
$ cat test
12|13|100|s
12|13|100|s
100|13|100|s
12|13|100|s
I want to replace all 100 by 2000 only in 3rd field using "awk"
This is replacing all 100's :-(
$ awk -F "|" '{gsub( /100/,"2000");print}' test
12|13|2000|s
12|13|2000|s
2000|13|2000|s... (5 Replies)
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
I want to find duplicates in file on 2nd field i wrote this code:
nawk '{a++} END{for i in a {if (a>1) print}}' temp
Could not find whats wrong with this.
Appreciate help (5 Replies)
I must write any shell script.
I want find files which have .txt extension and then copy them to other, whithout this extension, for example:
I found linux.out.txt file, and now it must be copy to new, linux.out.
So: linux.out.txt -> linux.out
ubuntu.config.txt -> ubuntu.config
... (4 Replies)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first.
At the moment i have the following code that
ls -d... (3 Replies)
RedHat Enterprise Linux 5.4
I have some files with the extension .cdp in several directories in various mountpoints(filesystems) . I would like to find and copy all these files into a single directory /u03/diagnore/data.
How can I do this ? (3 Replies)
I've got a file that looks like this (the whitespace between commas is intentional):
123456789,12,JOHN H DOE ,DOE/JOHN H ,,,DOE/JOHN H ,,,,,123 FAKE STREET ,SPRINGFIELD,XX,
I want to strip just the first name out of the third field so it reads "JOHN,". So far I... (6 Replies)
Hi All,
I have a below input, I want to copy the Job_name and Created_by field information to other bottom records as shown in below Output
Job_name Created_by Modified_on Modified_by
CGI_ACLMIB n38504 2014-05-07 20:40:48 n38504
2014-05-07 20:40:57 n38504
2014-05-08 20:40:57 n48504... (1 Reply)
Discussion started by: somu_june
1 Replies
LEARN ABOUT CENTOS
fontimage
FONTIMAGE(1) General Commands Manual FONTIMAGE(1)NAME
fontimage - produce a font thumbnail image
SYNOPSIS
fontimage [--help] [--width num] [--height num] [--pixelsize num] [--text string] [--o outputfile] [--usage] [--version] fontfile
DESCRIPTION
The program fontimage loads a font, which may be in any format fontforge(1) can read, and then produces an image showing representative
glyphs of the font.
OPTIONS --help Provide a description with a list of the available options.
--width num
Specifies the width of the output image. If this is omitted the image will be as wide as necessary to display the text.
--height num
Specifies the height of the output image. If this is omitted the image will be as high as necessary to display the text.
--pixelsize num
Specifies the pixelsize used to display the text. This argument may be specified multiple times and each refers to any --text lines
that follow it.
--text string
Specifies a line of text to be displayed. The string must be in UTF-8. This argument may be specified multiple times to provide
several lines of text. If no --text arguments are supplied fontimage will examine the font, looking for various scripts it knows
about, and will try to display something appropriate for each.
-o outfile
Specifies the output filename for the image. The type of image will be determined by the file's extension. Currently only ".bmp" and
".png" are recognized. If omitted fontimage will choose an output name based on the font's fontname field.
--usage
Display the usage description.
--version
Display the current version
SEE ALSO fontforge(1)
The HTML version of the fontforge manual at:
http://fontforge.sourceforge.net/
AUTHOR
Copyright (C) 2006 by George Williams (gww@silcom.com).
26 October 2006 FONTIMAGE(1)