Sponsored Content
Full Discussion: Compose variable name
Top Forums Shell Programming and Scripting Compose variable name Post 302192855 by potro on Thursday 8th of May 2008 03:56:04 AM
Old 05-08-2008
Compose variable name


while [ "$LPORT" != "F" ]
echo "Please type the Port and F when finish : (current value: $LPORT)"
readDefault -e LPORT
if [ "$LPORT" != "F" ]


for i in "$CRT"; do

If I run this I get
./listen.sh: line 32: LISTEN_PORT1=8080: command not found

How should I create that variable and then print it ?


9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed variable substitution when variable constructed of a directory path

Hello, i have another sed question.. I'm trying to do variable substition with sed and i'm running into a problem. my var1 is a string constructed like this: filename1 filerev1 filepath1 my var2 is another string constructed like this: filename2 filerev2 filepath2 when i do... (2 Replies)
Discussion started by: alrinno
2 Replies

2. Shell Programming and Scripting

Insert a line including Variable & Carriage Return / sed command as Variable

I want to instert Category:XXXXX into the 2. line something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong: sed "2i\\${n}Category:$cat\n" Sample: Titel Blahh Blahh abllk sdhsd sjdhf Blahh Blah Blahh Blahh Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies

3. Shell Programming and Scripting

How to define a variable with variable definition is stored in a variable?

Hi all, I have a variable say var1 (output from somewhere, which I can't change)which store something like this: echo $var1 name=fred age=25 address="123 abc" password=pass1234 how can I make the variable $name, $age, $address and $password contain the info? I mean do this in a... (1 Reply)
Discussion started by: freddy1228
1 Replies

4. Shell Programming and Scripting

Not able to store command inside a shell variable, and run the variable

Hi, I am trying to do the following thing var='date' $var Above command substitutes date for and in turn runs the date command and i am getting the todays date value. I am trying to do the same thing as following, but facing some problems, unique_host_pro="sed -e ' /#/d'... (3 Replies)
Discussion started by: gvinayagam
3 Replies

5. Shell Programming and Scripting

Variable not found error for a variable which is returned from stored procedure

can anyone please help me with this: i have written a shell script and a stored procedure which has one OUT parameter. now i want to use that out parameter as an input to the unix script but i am getting an error as variable not found. below are the unix scripts and stored procedure... ... (4 Replies)
Discussion started by: swap21783
4 Replies

6. Red Hat

How to pass value of pwd as variable in SED to replace variable in a script file

Hi all, Hereby wish to have your advise for below: Main concept is I intend to get current directory of my script file. This script file will be copied to /etc/init.d. A string in this copy will be replaced with current directory value. Below is original script file: ... (6 Replies)
Discussion started by: cielle
6 Replies

7. Shell Programming and Scripting

awk: compose regex in variable and then use its contents like $0 ~ var

A question to the awk pundits: I was thinking about composing a regex in a variable and then use its contents like $0 ~ var instead of $0 ~ /r/. Sort of indirection. Did someone run into this? Is it possible at all? (3 Replies)
Discussion started by: RudiC
3 Replies

8. Shell Programming and Scripting

[Solved] How to increment and add variable length numbers to a variable in a loop?

Hi All, I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies

9. UNIX for Advanced & Expert Users

Passing variable as input & storing output in other variable

I have a below syntax its working fine... var12=$(ps -ef | grep apache | awk '{print $2,$4}') Im getting expected output as below: printf "%b\n" "${VAR12}" dell 123 dell 456 dell 457 Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
Compose(5)							File Formats Manual							Compose(5)

Compose - X client mappings for multi-key input sequences DESCRIPTION
The X library, libX11, provides a simple input method for characters beyond those represented on typical keyboards using sequences of key strokes that are combined to enter a single character. The compose file is searched for in the following order: - If the environment variable $XCOMPOSEFILE is set, its value is used as the name of the Compose file. - If the user's home directory has a file named .XCompose, it is used as the Compose file. - The system provided compose file is used by mapping the locale to a compose file from the list in /usr/share/X11/locale/compose.dir. Compose files can use an "include" instruction. This allows local modifications to be made to existing compose files without including all of the content directly. For example, the system's iso8859-1 compose file can be included with a line like this: include "%S/iso8859-1/Compose" There are several substitutions that can be made in the file name of the include instruction: %H expands to the user's home directory (the $HOME environment variable) %L expands to the name of the locale specific Compose file (i.e., "/usr/share/X11/locale/<localename>/Compose") %S expands to the name of the system directory for Compose files (i.e., "/usr/share/X11/locale") For example, you can include in your compose file the default Compose file by using: include "%L" and then rewrite only the few rules that you need to change. New compose rules can be added, and previous ones replaced. FILE FORMAT
Compose files are plain text files, with a separate line for each compose sequence. Comments begin with # characters. Each compose sequence specifies one or more events and a resulting input sequence, with an optional comment at the end of the line: EVENT [EVENT...] : RESULT [# COMMENT] Each event consists of a specified input keysym, and optional modifier states: [MODIFIER_LIST] <keysym> Each modifier consists of a specified modifier and a state: (! MODIFIER ) | None Modifiers may be preceded by a "~" character to indicate that the modifier must not be present. The result specifies a string, keysym, or both, that the X client receives as input when the sequence of events is input: "STRING" | keysym | "STRING" keysym Keysyms are specified without the XK_ prefix. Strings may be direct text encoded in the locale for which the compose file is to be used, or an escaped octal or hexadecimal character code. Octal codes are specified as "123" and hexadecimal codes as "x123a". It is not necessary to specify in the right part of a rule a locale encoded string in addition to the keysym name. If the string is omitted, Xlib figures it out from the keysym according to the current locale. I.e., if a rule looks like: <dead_grave> <A> : "300" Agrave the result of the composition is always the letter with the "300" code. But if the rule is: <dead_grave> <A> : Agrave the result depends on how Agrave is mapped in the current locale. ENVIRONMENT
XCOMPOSEFILE File to use for compose sequences. XCOMPOSECACHE Directory to use for caching compiled compose files. FILES
$HOME/.XCompose User default compose file if XCOMPOSEFILE is not set. /usr/share/X11/locale/compose.dir File listing the compose file path to use for each locale. /usr/share/X11/locale/<localemapping>/Compose System default compose file for the locale, mapped via compose.dir. /var/cache/libx11/compose/ System-wide cache directory for compiled compose files. $HOME/.compose-cache/ Per-user cache directory for compiled compose files. SEE ALSO
XLookupString(3), XmbLookupString(3), XwcLookupString(3), Xutf8LookupString(3), mkcomposecache(1), locale(7). Xlib - C Language X Interface X Version 11 libX11 1.6.0 Compose(5)

Featured Tech Videos

All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy