11-19-2014
Great, THANK YOU
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
i'd like to know if the following is possible with a shell script, and can't find the answer in the search.
Suppose i have a logfile build like this:
# 8 :riuyzp1028
# 38 : riuyzp1028
# 25 : riuyvzp1032
# 30 : nlkljpa0202
# 1 : nlklja0205
# 38 : riuyzp1028
# 25 :... (4 Replies)
Discussion started by: Freerider
4 Replies
2. Shell Programming and Scripting
I have enclosed the script. I am able to find the files that contain my search string but when I try to count the occurences within the file I get zero always. Any help on this.
#!/usr/bin/perl
my $find = $ARGV;
my $replace = $ARGV;
my $glob = $ARGV;
@filelist = <*$glob>;
# process each... (22 Replies)
Discussion started by: TimHortons
22 Replies
3. Shell Programming and Scripting
trying to remove the portion in red:
Data:
mds_ar/bin/uedw92wp.ksh: $AI_SQL/wkly.sql
mds_ar/bin/uedw92wp.ksh: $EDW_TMP/wkly.sql
output to be:
mds_ar/bin/uedw92wp.ksh: wkly.sql
mds_ar/bin/uedw92wp.ksh: wkly.sql
SED i'm trying to use:
sed 's/:+\//: /g' input_file.dat >... (11 Replies)
Discussion started by: danmauer
11 Replies
4. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
5. Shell Programming and Scripting
Hi. I have to delete the content between all the occurrences of the xml tags in a single file.
For example:
* The tags <script>.....................</script> occurs more than once in the same file.
* It follows tagging rules meaning a start tag will be followed by an end tag. Will not have... (9 Replies)
Discussion started by: satheeshkumar
9 Replies
6. Shell Programming and Scripting
I have some text files in a folder f1 with 10 columns. The first five columns of a file are shown below.
aab abb 263-455 263 455
aab abb 263-455 263 455
aab abb 263-455 263 455
bbb abb 26-455 26 455
bbb abb 26-455 26 455
bbb aka 264-266 264 266
bga bga 230-232 230 ... (10 Replies)
Discussion started by: gomez
10 Replies
7. Shell Programming and Scripting
I have a file with random characters where every time a char occurs twice, one occurrence must be removed.
Eg.
asjkdhaSSd
Must become:
asjkdhaSd
Anybody has a SED script in mind to do it? (1 Reply)
Discussion started by: rlopes
1 Replies
8. Shell Programming and Scripting
I am trying to grep for a particular text (Do action on cell BL330) in a text file(sample.gz) which is searched in the content filtered by date+timestamp (2016-09-14 01:09:56,796 to 2016-09-15 04:10:29,719) on a remote machine and finally write the output into a output file on a local machine.
... (23 Replies)
Discussion started by: rbadveti
23 Replies
9. Shell Programming and Scripting
Script logs into switches on my list but nothing seems to happen.
Following error:
tr nope, doesn't (yet) match (?-xism:-]+ ?(?:\(config*\))? ? ?$)
du SEEN:
Here is code in question:
@version_info = $session_obj->cmd('term length 0');
$session_obj->cmd('show int | i... (5 Replies)
Discussion started by: mrlayance
5 Replies
10. UNIX for Beginners Questions & Answers
I am trying to add word in last of particular line.
the same command syntex is running on prompt. but in bash script give error."sed: -e expression #1, char 20: unterminated address regex"
Please help.
for i in `cat servername`;
do
ssh -q -t root@$i sed -i '/simple_allow_groups =/s/$/,... (4 Replies)
Discussion started by: yash_message
4 Replies
LEARN ABOUT CENTOS
ttmkfdir
TTMKFDIR(1) General Commands Manual TTMKFDIR(1)
NAME
ttmkfdir - Utility to create fonts.scale files for truetype fonts
SYNOPSIS
ttmkfdir [OPTION]
DESCRIPTION
Originally written by Joerg Pommnitz, ttmkfdir is a tool to create valid and complete fonts.scale file from TrueType fonts. It is very
useful when you plan to use a TrueType enabled font server that is based on the X11R6 sample implementation (xfsft for instance). Great
care has been taken to correctly identify the encodings that a given TrueType font supports.
The ttmkfdir comes with Red Hat Linux has experienced quite some modifications or improvements, include:
- migration to FreeType 2 library
- more accurate checking for big font files
- support for both two X core font backends, Freetype and XTT
- Truetype collection(ttc) font file support
- additional CJK friendly features
- bug fixes
OPTIONS
Here is the detailed usage of Red Hat version of ttmkfdir.
-h, --help
It shows the menus and combo box in iok UI
-e, --encoding <encodings.dir>
ttmkfdir is doing its job by checking each TrueType font file against fontenc layer, please refer www.xfree86.org/current/fonts.html
for details. Default encodings.dir file is /usr/X11R6/lib/X11/fonts/encodings/encodings.dir
-o, --output
Specify output, default is fonts.scale in the current directory
-d, --font-dir
Specify TrueType font directory, default is the current directory
-f, --default-foundry
Specify name of the default font foundry, default is "misc"
-m, --max-missing
Specify the maximum number of missing characters per encoding, default is 5. This option applies to the encoding that has less than
256 codepoint definitions.
-a, --max-missing-percentage
Specify the maximum percentage of missing characters per encoding, default is 2. This option applies to the encoding that has more
than 256 codepoint definitions.
-b, --font-backend
For X FreeType backend, use value "1", for XTT backend use value "2", default value is 1. When you have TrueType Collection
font(.ttc), you need to use this option.
-x, --additional-entries
Additional entries mean those extra TTCaps stuff for XTT backend, mainly for bold and italic font support. Or for FreeType backend,
because FreeType still doesn't support bold and italic font, ttmkfdir can generate extra "dummy" XLFDs, so applications who asking
those fonts won't complain.
Default value is "0" means off,otherwise use "1" to switch it on.
-c, --completeness
use less strict completeness tests for encoding tables
-p, --panose
use panose information
AUTHOR
Yu Shao <yshao@redhat.com> and Pravin Satpute <psatpute@redhat.com>
LICENSE
GNU Library General Public License
March 28, 2013 TTMKFDIR(1)