11-13-2001
With some shells, you may need to make it a literal key, though. In the case that you press tab and either nothing, or something unwanted happens, press Ctrl+V then press tab. Also, you may sometimes type \, then type tab.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to exclude (-v) blank records from a file before analysing it.
I know I can use '^]$' for spaces and tabs but how do you look for lines that have nothing (/n or line feed) ? (2 Replies)
Discussion started by: Browser_ice
2 Replies
2. UNIX for Dummies Questions & Answers
how can i use grep to search a file with a tab, for example
grep -l "Text<TAB>Text" *.txt (2 Replies)
Discussion started by: Adriel
2 Replies
3. UNIX for Dummies Questions & Answers
I try to remove empty lines from file and use next:
> cat fl.dat|grep -v '^*$'
or
cat fl.dat|sed '/^*$/d'
'grep' does not removes lines with tabs, 'sed' - lines with <tab> and with <spc>
Why it could be?
Is there any option/env-var should I check?
Thank you
Alex (5 Replies)
Discussion started by: alex_5161
5 Replies
4. Shell Programming and Scripting
Hi Guys,
I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys.
MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' `
Harby. (4 Replies)
Discussion started by: hariza
4 Replies
5. Shell Programming and Scripting
Hi All,
I have a folder that contain 100's of subfolders namely:
Main folder -> GHFG
- Subfoders ->10
100
234
102
345
..
..
... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
6. Shell Programming and Scripting
Hi,
I have a file and it is tab delimited.
I have to remove the tab and add space after the string "GET" if tab it exists. (1 Reply)
Discussion started by: sandy1028
1 Replies
7. UNIX for Dummies Questions & Answers
Hi Forum
I have a tab delimited file that opens well in Openoffice calc (excel). But when I perform any operation in command line, it reads the file incorrectly. When I 'save As' the same file in office as tab delimited then it works fine.
The file that I think is tab delimited is actually... (8 Replies)
Discussion started by: imlearning
8 Replies
8. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
9. UNIX for Beginners Questions & Answers
Hello, I am trying to find a solution to problem that's proving to be beyond my newbie skills. The below files comes from a genetics study. File 1 describes a position on the genome and file 2 does the same but is formatted differently and has more information. I am trying to match all lines in... (5 Replies)
Discussion started by: andmal
5 Replies
10. UNIX for Beginners Questions & Answers
Hello Everyone..
I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files
FileP.txt
... (2 Replies)
Discussion started by: YogeshG
2 Replies
LEARN ABOUT CENTOS
xkbsaactionsetctrls
XkbSAActionSetCtrls(3) XKB FUNCTIONS XkbSAActionSetCtrls(3)
NAME
XkbSAActionSetCtrls - Sets the ctrls0 through ctrls3 fields of act from ctrls
SYNOPSIS
void XkbSAActionSetCtrls (XkbCtrlsAction act, unsigned int ctrls);
ARGUMENTS
- act action in which to set ctrls0-ctrls3
- ctrls
value to set in ctrls0-ctrls3
DESCRIPTION
Actions associated with the XkbCtrlsAction structure change the state of the boolean controls.
The type field can have any one of the values shown in Table 1.
Table 1 Controls Action Types
--------------------------------------------------------------
Type Effect
--------------------------------------------------------------
XkbSA_SetControls A key press enables any boolean controls
specified in the ctrls fields that were
not already enabled at the time of the
key press. A key release disables any
controls enabled by the key press. This
action can cause XkbControlsNotify
events.
XkbSA_LockControls If the XkbSA_LockNoLock bit is not set
in the flags field, a key press enables
any controls specified in the ctrls
fields that were not already enabled at
the time of the key press.
If the XkbSA_LockNoUnlock bit is not set
in the flags field, a key release dis-
ables any controls specified in the
ctrls fields that were not already dis-
abled at the time of the key press.
This action can cause XkbControlsNotify
events.
The flags field is composed of the bitwise inclusive OR of the masks shown in Table 2.
Table 2 Control Action Flags
--------------------------------------------------------------
Flag Meaning
--------------------------------------------------------------
XkbSA_LockNoLock If set, and the action type is
XkbSA_LockControls, the server only dis-
ables controls.
XkbSA_LockNoUnlock If set, and the action type is
XkbSA_LockControls, the server only
enables controls.
The XkbSA_SetControls action implements a key that enables a boolean control when pressed and disables it when released. The XkbSA_LockCon-
trols action is used to implement a key that toggles the state of a boolean control each time it is pressed and released. The XkbSA_Loc-
kNoLock and XkbSA_LockNoUnlock flags allow modifying the toggling behavior to only unlock or only lock the boolean control.
The ctrls0, ctrls1, ctrls2, and ctrls3 fields represent the boolean controls in the enabled_ctrls field of the controls structure. Xkb
macros, to convert between the two formats.
XkbSAActionSetCtrls sets the ctrls0 through ctrls3 fields of act from ctrls.
STRUCTURES
typedef struct _XkbCtrlsAction {
unsigned char type; /* XkbSA_SetControls, XkbSA_LockControls */
unsigned char flags; /* with type, controls enabling and disabling
of controls */
unsigned char ctrls3; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls2; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls1; /* ctrls0 through ctrls3 represent the boolean
controls */
unsigned char ctrls0; /* ctrls0 through ctrls3 represent the boolean
controls */
} XkbCtrlsAction;
X Version 11 libX11 1.6.0 XkbSAActionSetCtrls(3)