How to find that a given variable is a number or character?
e.g.
echo "Enter the number"
read var
If "$var" is a number then display "Number has been entered"
else display "Character has been entered".
Thanking you in advance (3 Replies)
Hi,
I want, if a line is more than 80 characters length then put a new line with 4 space after each 80 characters to indent the data at same position.
Input:
200 Geoid and gravity anomaly data of conjugate regions of Bay of Bengal and Enderby Basin: New constraints on breakup and early... (3 Replies)
Hello,
I have a text file with n lines in the following format (9 column fields):
Example:
contig00012 149606 G C 49 68 60 18 c$cccccacccccccccc^c
I need to count the number of lower-case and upper-case occurences in column 9, respectively, of the... (3 Replies)
Hi,
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
thanks in advance,
Sara (9 Replies)
How to find total number of special character in a column?
I am using awk -f "," '$col_number "*$" {print $col_number}' file.csv|wc -l but its not giving correct output. It's giving output as 1 even though i give no special character?
Please use code tags next time for your code and... (4 Replies)
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Hi all,
I am looking for to filter out based on 7th character and list the number of occurrence based on the 7th character if p , d , o or m
1. if 7th character is p , Output should be: p_hosts = N
2. if 7th character is d , Output should be: d_hosts = N
3. if 7th character is o , Output... (10 Replies)
hello !
I have to remove string between a number and set of characters. For example,
35818 -stress - - -stress - - - - - - DB-3754
44412 caul kid notify DB-3747
54432 roberto -, notify DB-3725
55522 aws _ _int _ _classified 2_a _a 2_m _m 2_classified 2_search... (7 Replies)
Discussion started by: ManoharMa
7 Replies
LEARN ABOUT HPUX
xdeletemodifiermapentry
XDeleteModifiermapEntry() XDeleteModifiermapEntry()
Name
XDeleteModifiermapEntry - delete an entry from an XModifierKeymap structure.
Synopsis
XModifierKeymap *XDeleteModifiermapEntry(modmap,
keycode_entry, modifier)
XModifierKeymap *modmap;
KeyCode keycode_entry;
int modifier;
Arguments
modmap Specifies a pointer to an XModifierKeymap() structure.
keycode_entry
Specifies the keycode of the key to be deleted from modmap.
modifier Specifies the modifier you no longer want mapped to the keycode specified in keycode_entry. This should be one of the constants:
ShiftMapIndex, LockMapIndex, ControlMapIndex, Mod1MapIndex, Mod2MapIndex, Mod3MapIndex, Mod4MapIndex, or Mod5MapIndex.
Returns
The modified structure.
Description
XDeleteModifiermapEntry() returns an XModifierKeymap() structure suitable for calling XSetModifierMapping(), in which the specified keycode
is deleted from the set of keycodes that is mapped to the specified modifier (like Shift or Control). XDeleteModifiermapEntry() itself
does not change the mapping.
This function is normally used by calling XGetModifierMapping() to get a pointer to the current XModifierKeymap() structure for use as the
modmap argument to XDeleteModifiermapEntry().
For a description of the modifier map, see XSetModifierMapping().
Structures
typedef struct {
int max_keypermod; /* server's max number of keys per modifier */
KeyCode *modifiermap; /* an 8 by max_keypermod array of
* keycodes to be used as modifiers */
} XModifierKeymap;
#define ShiftMapIndex 0
#define LockMapIndex 1
#define ControlMapIndex 2
#define Mod1MapIndex 3
#define Mod2MapIndex 4
#define Mod3MapIndex 5
#define Mod4MapIndex 6
#define Mod5MapIndex 7
See Also
XFreeModifiermap(), XGetKeyboardMapping(), XGetModifierMapping(), XKeycodeToKeysym(), XKeysymToKeycode(), XKeysymToString(), XLookup-
Keysym(), XLookupString(), XNewModifiermap(), XQueryKeymap(), XRebindKeySym, XRefreshKeyboardMapping(), XSetModifierMapping(), XString-
ToKeysym(), XInsertModifiermapEntry.
Xlib - Resource Manager XDeleteModifiermapEntry()