I have no idea how to write ksh script, but i'm really in need of help with this. I using fedora 30 and in attempt of runnig attached script i getting those errors, i solved first error by removing excess bracket, but i do not know what should i do with other. Pls sorry for trash post.
Hi,
i am facing an error in the following script in the korn shell but in bash it is working , can any help me to convert the below script to korn shell script without errors.
echo 123.4566 | bc -l | awk -F '.' '{ print $1; exit; }'
Thanks in advance
kamal (5 Replies)
Here is what I am trying to do:
I have a list of numbers that I pulled from an awk command in a column like so:
1
3
4
7
8
I want to find which numbers in the list are missing out of a range. So let's say I want to find out from the list above which numbers are missing from the... (6 Replies)
Ok, i've been messing around in debian the past few days, setting up programs like subversion, mysql and logrotate. The purpose of this script is to use subversion to backup the binary logs. It runs in the cron every 2 hours or so (although I can't get my script to run properly atm, which is why... (1 Reply)
Hi
Thanks for this amazing forum first, I've been searching answers in it for problems that I've encountered at work.
The only problem I haven't been able to find a fix for, is a ever waiting for prompt problem in Expect when encounter a $ prompt.
I usually set the timeout to -1 cause the... (2 Replies)
The below script gives error: Missing ]
#!/bin/csh
set MAX=15
set PATTERN='dtsession'
set NUM=`ps -eaf | grep -c $PATTERN`
echo "No of dtsession = "$NUM
if
then
echo 'Quota exceeded permissible limit'
echo 'sending mail...............'
mail hiten.r.chauhan@gmail.com<<EOF
... (2 Replies)
Hi,
While running below code i am getting error as below
0403-004 Specify a parameter with this command.
Please look it below code and let me know about if condition.
Code is As below
#!/usr/bin/ksh
Infa_Src_Dir=$DIR/SrcFiles/pp
Load_Info_Lst_Path=$DIR/SrcFiles/pp... (1 Reply)
Can somebody tell me the difference between double brackets and single
brackets, when doing a test.
I have always been acustomed to using single brackets and have not
encountered any issues to date. Why would somebody use double brackets.
Ie
if ]
vs
if
Thanks to... (2 Replies)
Hi Guys :)
while trying to set the paths for Oracle, sqlplus etc. I have been trying to find dot files (.profile or .kshrc or .bashrc or .cshrc or .login or .bash_profile or similar files) to append new paths so that I can connect to oracle from a shell script (RedHat 6.3 with KSH shell). But I... (6 Replies)
Dear Friends,
Regarding Compilation error character is missing-unix shell script
I am new to unix shell script.
My requirement is --I need to find out 3 files in my UBM unix directory,if any one(CMUSER) file is available means,then i need to exit from my unix script,
Below is my unix... (2 Replies)
Discussion started by: Joseph2017
2 Replies
LEARN ABOUT CENTOS
font::ttf::gdef
Font::TTF::GDEF(3) User Contributed Perl Documentation Font::TTF::GDEF(3)NAME
Font::TTF::GDEF - Opentype GDEF table support
DESCRIPTION
The GDEF table contains various global lists of information which are apparantly used in other places in an OpenType renderer. But
precisely where is open to speculation...
INSTANCE VARIABLES
There are up to 5 tables in the GDEF table, each with their own structure:
GLYPH
This is an Font::TTF::Coverage Class Definition table containing information as to what type each glyph is.
ATTACH
The attach table consists of a coverage table and then attachment points for each glyph in the coverage table:
COVERAGE
This is a coverage table
POINTS This is an array of point elements. Each element is an array of curve points corresponding to the attachment points on that
glyph. The order of the curve points in the array corresponds to the attachment point number specified in the MARKS coverage
table (see below).
LIG This contains the ligature caret positioning information for ligature glyphs
COVERAGE
A coverage table to say which glyphs are ligatures
LIGS An array of elements for each ligature. Each element is an array of information for each caret position in the ligature (there
being number of components - 1 of these, generally)
FMT This is the format of the information and is important to provide the semantics for the value. This value must be
set correctly before output
VAL The value which has meaning according to FMT
DEVICE For FMT = 3, a device table is also referenced which is stored here
MARKS
This class definition table defines the classes of mark glyphs that can be selected for processing using the MarkAttachmentType field
of lookup FLAG words.
MARKSETS
Contains an array of coverage tables indexed by the FILTER value of a lookup.
METHODS
$t->read
Reads the table into the data structure
$t->out($fh)
Writes out this table.
$t->update
Sort COVERAGE tables.
perl v5.16.3 2012-08-08 Font::TTF::GDEF(3)