Sponsored Content
Top Forums Shell Programming and Scripting check if one string comes before another Post 302576769 by ahamed101 on Saturday 26th of November 2011 07:41:43 AM
Old 11-26-2011
Paste a proper input file with possible combinations and which pattern are you referring to...

--ahamed
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check a string in the variable

hi, I have a variable var1 as follows in the script. var1="one two three desformat=PDF xyz" I would like to check whether $var1 has a string "desformat=PDF" or not. Is there any command I can use (not need to creat a file)? Currently, I am using this: if ( grep "desformat=PDF"... (1 Reply)
Discussion started by: josephwong
1 Replies

2. Shell Programming and Scripting

read string, check string length and cut

Hello All, Plz help me with: I have a csv file with data separated by ',' and optionally enclosed by "". I want to check each of these values to see if they exceed the specified string length, and if they do I want to cut just that value to the max length allowed and keep the csv format as it... (9 Replies)
Discussion started by: ozzy80
9 Replies

3. Shell Programming and Scripting

how to check string of character

how can i check whether variable contains only character from a-z or A-Z....if my variable contains any alpha numeric, numeric or any character with some special one i.e. *%&@! etcetera etcetera....then it should show me please enter only characters...... Let my variable var1="abc77}|" then... (9 Replies)
Discussion started by: manas_ranjan
9 Replies

4. UNIX for Advanced & Expert Users

check if a variable contains a string

hi I have an if condition that states: if ; then exit how to translate this? $x is a path $y is a string that comes at the end of the path thx (11 Replies)
Discussion started by: melanie_pfefer
11 Replies

5. Shell Programming and Scripting

check if a string is numeric

I checked all the previous threads related to this and tried this. My input is all numbers or decimals greater than zero everytime. I want to check the same in the korn shell script. Just validate the string to be numeric. This is what I am doing. var="12345" if ) -o "$var" !=... (14 Replies)
Discussion started by: megha2525
14 Replies

6. Shell Programming and Scripting

A nice way to check a string

Guys, I need some advice on how to check a string, which may or may not have a entry.. Never really worked out how to do this.. May be a good time to learn now. This is what i am trying to do Run a command, to return a string If the string is not empty , then run the if statement,... (4 Replies)
Discussion started by: Junes
4 Replies

7. Shell Programming and Scripting

Check file for string existence before appending it with string

I want to append file with a string but before doing that i want to check if this string already exist in that file.I tried with grep on Solaris 10 but unsuccessful.Man pages from grep seems to suggest if the string is found command status will be 0 and if not 1.But i am not finding it.May be i... (2 Replies)
Discussion started by: sahil_shine
2 Replies

8. Shell Programming and Scripting

Check for rows with particular string

Hi. The data file is as below: 2000922111111100232091212098324.... 2123011230912832094820943684896.... 3435983453409583405938453049583.... . . . I need to get only the rows that match my criteria. For example: those at characters 5-10 should equal to "922111" (thus getting only the 1st... (7 Replies)
Discussion started by: daytripper1021
7 Replies

9. Shell Programming and Scripting

Cant check empty string

Hello So i have that script collection, in which i have a single script to create a configuration file. In there, i have multiple occourences of something like this: prj_title=$(tui-read "What is the TITLE? ($prj_name):") ] && prj_title="${prj_name/_/ }" They all work as expected, if... (5 Replies)
Discussion started by: sea
5 Replies
xudced(1)						      General Commands Manual							 xudced(1)

NAME
xudced - user-defined character editor SYNOPSIS
xudced [udc_file [WIDTHxHEIGHT]] DESCRIPTION
xudced is an editor that creates, modifies, and deletes user-defined characters (UDC). It uses bitmap(1) to edit UDC character patterns. Character patterns from existing HP Asian fonts can be modified to create UDCs. xudced runs on the X Window System, Version 11. If udc_file is not specified, the file $HOME/.nlio_udc is read. WIDTHxHEIGHT sets the size of UDC pattern. This can be specified by the udc_width and the udc_height resources. If it is not specified, 24x24 is used. Menu Functions are selected with pull-down menus. To select a function, move the mouse pointer to the menu header. Press and hold the left mouse button. A pull-down menu appears. Drag the mouse pointer down to the desired function and release the mouse button. Functions with the ... suffix invoke a pop-up box that requests further information. The following functions are available: File Open ... Open a file for editing. A pop-up box appears. Enter the file name and the size of the UDC and click OK to display the file. Click Cancel to abort the function. Open font ... Open an HP font and display its contents in another window. A pop-up box appears. Enter the HP font name and click OK to display the font. Click Cancel to abort the function. Save Save UDCs to the file. They are sorted by index number according to the udc(4) format. Exit Exit xudced. If the UDCs have been changed since the last Save, a pop-up box appears. Click yes to save the UDCs before exiting. Click no to exit without saving. Click cancel to abort the function. Edit To edit a particular UDC, move the mouse pointer to the UDC, click the left mouse button, and select an Edit function. These functions can be selected from the Edit menu header, or by clicking and dragging the right mouse button while in the edit window. Cut Remove the selected UDC and store it in the Cut&Paste buffer. Copy Copy the selected UDC to the Cut&Paste buffer. Paste Insert the contents of the Cut&Paste buffer. Delete Remove the selected UDC. Search ... Search a UDC. A pop-up box appears. Enter the index number of the UDC and click OK to search the UDC. Click Cancel to abort the function. Modify pattern ... Invoke bitmap(1) to modify the character pattern of the selected UDC. View Code ... Display the index code and the character pattern for all UDCs in the file. A new window appears that dis- plays the index codes and the character patterns. Click Close to close the window. Cut buffer ... Display the contents of Cut&Paste buffer. A new window appears. Click Close to close the window. Cut&Paste Buffer The contents of the Cut&Paste buffer is shared among windows. Therefore, the Cut, Copy, and Paste functions can be used to move character patterns between windows. X Defaults xudced uses the following resources: background background color. foreground foreground color. font text font. udc_width default width of UDC. udc_height default height of UDC. REMARKS
In Japanese environment, two main windows are invoked. One is for the udc of JIS X 0208 font, and the other is for the udc of JIS X 0212 font. SEE ALSO
bitmap(1), udcc(1), udcload(1), udc(4). xudced(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy