Hello,
I have a code like this :
pstSimPOIInfo.ppcName = realloc(pstSimPOIInfo.ppcName, (usLen+strlen(CountryName)+4));
memset(pstSimPOIInfo.ppcName, 0, (usLen+strlen(CountryName)+4)); strncpy((char *)pstSimPOIInfo.ppcName, CityName, strlen(CityName)) strcat(pstSimPOIInfo.ppcName, ",");... (3 Replies)
I am working on a script that prompts a user name and creates a list in a username.dat file. Furthermore, I have created a sorted_username.dat file. My question is this: My script uses the word "finished" != finished to break the while loop. How can I avoid having the word "finished" show up in... (5 Replies)
Hi All,
I want to remove last word from a line using Vi.
Do we have any vi command for that.
line : ss dd ff gg
i have to run some vi command which can delete gg from the line
Thanks,
Ravi Sadani (4 Replies)
Hi champs!
I have a fixed width file in which the records appear like this
11111 <fixed spaces such as 6> description for 11111 <fixed spaces such as 6> some more field to the record of 11111
22222 <fixed spaces such as 6> description for 22222 <fixed spaces such as 6> some more field to the... (8 Replies)
Hi All,
In one of the sections in my perl script, I need to remove the 1st character of a word and store in an array.The details are ,
The original script was ,
if ( ! defined $inq{$node}{"dmx"} ) {
print "INFO: Collecting inq disk information for DMX array on $node.\n";
... (2 Replies)
hi
I would like to ask if someone knows a command or a script on how to rename a multiple file in the directory starting at the end of the filename or at the .extension( i would like to remove the last 11 character before the extension) for example
Below is the result of my command ls inside... (5 Replies)
lets say i have a file named ex1 which contain an essay.
(a) delete the word "benefit" from the file
(b) delete the last 6 characters on each line
for the first problem i entered :g/benefit/d but it deletes the whole line
please help (3 Replies)
Using awk, is there a way to remove newlines in strings that don't contain 1_ at the beginning, but without setting RS="1_" in the BEGIN section and without using a END section as well?
input:
1_this is line 1
aaaaaaaa
bbbb
1_this is line 2
cccc
1_this is line 3
dddddddddddddd... (7 Replies)
It is very simple to remove a hyphen from a word anywhere in that word using a simple sed command (sed -i 's/-//g' filename), but I am not able to figure out how to do this:
For example,
apple
-orange
tree
pipe-
banana-shake
dupe-
What my output should look like:
apple
orange
tree... (1 Reply)
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
Discussion started by: saravanapandi
2 Replies
LEARN ABOUT ULTRIX
addch
addch(3cur)addch(3cur)Name
addch, waddch, mvaddch, mvwaddch - add character to window
Syntax
#include <cursesX.h>
int addch(ch)
chtype ch;
int waddch(win, ch)
WINDOW *win;
chtype ch;
int mvaddch(y, x, ch)
int y, x;
chtype ch;
int mvwaddch(win, y, x, ch)
WINDOW *win;
int y, x;
chtype ch;
Description
The routine inserts the character into the default window at the current cursor position and the window cursor is advanced. The character
is of the type which is defined in the header file, as containing both data and attributes.
The routine inserts the character into the specified window at the current cursor position. The cursor position is advanced.
The routine moves the cursor to the specified (y, x) position and inserts the character into the default window. The cursor position is
advanced after the character has been inserted.
The routine moves the cursor to the specified (y, x) position and inserts the character into the specified window. The cursor position is
advanced after the character has been inserted.
All these routines are similar to The following information applies to all the routines.
If the cursor moves on to the right margin, an automatic newline is performed. If is enabled, and a character is added to the bottom right
corner of the screen, the scrolling region will be scrolled up one line. If scrolling is not allowed, ERR will be returned.
If is a tab, newline, or backspace, the cursor will be moved appropriately within the window. If is a newline, the routine is called
before the cursor is moved to the beginning of the next line. If newline mapping is off, the cursor will be moved to the next line, but
the x coordinate will be unchanged. If is a tab the cursor is moved to the next tab position within the window. If is another control
character, it will be drawn in the ^X notation. Calling the routine after adding a control character returns the representation of the
control character, not the control character.
Video attributes can be combined with a character by or-ing them into the parameter. This will result in these attributes being set. The
intent here is that text, including attributes, can be copied from one place to another using and For further information, see
The and routines are macros.
Return Values
The and functions return OK on success and ERR on error.
See Alsoclrtoeol(3cur), inch(3cur), scrollok(3cur), standout(3cur), putchar(3s)addch(3cur)