09-28-2015
Did you enter literal "^M" or did you use the <CR> control character (e.g. <Ctrl V><Ctrl M>, or "\r") ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All I ask is one thing:
1. Where can i dl unix and the driver for my modem?
right now i have win xp HP notebook, and bellsouth is my provider with a westell modem. (2 Replies)
Discussion started by: velious
2 Replies
2. Shell Programming and Scripting
I am trying to find any line with the 9th column's number greater than 200, but why the following awk command does not work?
awk '$9 > 200' /tmp/test
2007-09-05 10:13:05.714 640.847 any 1.2.3.4 719 2445 487260 32 6082 199
2007-09-05 10:13:02.686 641.827... (2 Replies)
Discussion started by: fedora
2 Replies
3. Shell Programming and Scripting
I want to filter 2nd column = 2 using awk
$ cat t
1 2
2 4
$ VAR=2
#variable worked in print
$ cat t | awk -v ID=$VAR ' { print ID}'
2
2
# but variable didn't work in awk filter
$ cat t | awk -v ID=$VAR '$2~/ID/ { print $0}' (2 Replies)
Discussion started by: honglus
2 Replies
4. Shell Programming and Scripting
hi guys,
i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB
MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
this the file raw format:
Number of... (6 Replies)
Discussion started by: dagigg
6 Replies
5. Shell Programming and Scripting
I have some data, each record (line) ends with a line feed (\n). Each field is pipe (|) delimited.
1|short desc|long text|2001-01-01 01:01
2|short desc| long
text |2002-02-02 02:02
3|short desc| long text | 2003-03-03 03:03
4|short desc
| long text | 2004-04-04 04:04
... (10 Replies)
Discussion started by: ericdp63
10 Replies
6. Solaris
Hi all
In my system we have implemented user lockout feature after 3 failure attempt if he tries to login directly or if he run the any command through sudo and enter wrong password thrice. Now I have requirement in which particular user account shouldn't be locked when he run the command... (1 Reply)
Discussion started by: sb200
1 Replies
7. Shell Programming and Scripting
i suspect the issue is with the IFS part. I have a script that reads a file. the problem here is that, when i run the script, it outputs a bunch of numbers. i know what these numbers are, but i dont understand why they're being sent to the screen.
as you can see below, everything should be... (5 Replies)
Discussion started by: SkySmart
5 Replies
8. UNIX for Dummies Questions & Answers
Oracle Linux 6.5
oracle user's primary group is oinstall and its secondary group is dba,asmdba,asmoper.
For the below created directory, I want the users belonging to dba,asmdba,asmoper to be able create, read and execute files but not delete them. How can I achieve that.
If I use 775 as... (5 Replies)
Discussion started by: kraljic
5 Replies
9. Shell Programming and Scripting
Hi everyboy,
I am a little confused and can't understand why I get a positive match in the following case.
Shell Script section echo $SHELL
echo "Server type = ${SERV_TYPE}"
if ]]; then
echo "foor"
echo -e $(_date) "${cinfo}INFO: ${crst}Checking SAP memory on ${HOST}"This is the... (1 Reply)
Discussion started by: h1kelds
1 Replies
LEARN ABOUT REDHAT
mrmfetchliteral
MrmFetchLiteral(library call) MrmFetchLiteral(library call)
NAME
MrmFetchLiteral -- Fetches a literal from a UID file
SYNOPSIS
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchLiteral(
MrmHierarchy hierarchy_id,
String index,
Display *display,
XtPointer *value,
MrmCode *type);
DESCRIPTION
The MrmFetchLiteral function reads and returns the value and type of a literal (named value) that is stored as a public resource in a sin-
gle UID file. This function returns a pointer to the value of the literal. For example, an integer is always returned as a pointer to an
integer, and a string is always returned as a pointer to a string.
Applications should not use MrmFetchLiteral for fetching icon or color literals. If this is attempted, MrmFetchLiteral returns an error.
hierarchy_id
Specifies the ID of the UID hierarchy that contains the specified literal. The value of hierarchy_id was returned in a previous
call to MrmOpenHierarchyPerDisplay.
index Specifies the UIL name of the literal (pixmap) to fetch. You must define this name in UIL as an exported value.
display Specifies the display used for the pixmap. The display argument specifies the connection to the X server. For more information
on the Display structure, see the Xlib function XOpenDisplay.
value Returns the ID of the named literal's value. The function allocates space for the returned value. The application is responsi-
ble for managing the allocated space by calling the appropriate deallocation function. For example, if the returned ID symbolizes
a pixmap, then the application can recover the allocated space by calling XmDestroyPixmap.
type Returns the named literal's data type. Types are defined in the include file Mrm/MrmPublic.h.
RETURN
This function returns one of the following status return constants:
MrmSUCCESS
The function executed successfully.
MrmBAD_HIERARCHY
The hierarchy ID was invalid.
MrmNOT_FOUND
The literal was not found in the UIL file.
MrmWRONG_TYPE
The caller tried to fetch a literal of a type not supported by this function.
MrmFAILURE
The function failed.
RELATED
MrmFetchBitmapLiteral(3), MrmOpenHierarchyPerDisplay(3), MrmFetchIconLiteral(3), MrmFetchColorLiteral(3), and XOpenDisplay(3).
MrmFetchLiteral(library call)