I have to look through logfiles where lines are several hundred characters long and if I open the log in Vi it automatically word wraps the line. In Vim you can use the -nowrap option to stop this, but how can you do this in Vi?
I ask because I don't want to see the whole line, just the first few... (8 Replies)
Daily we are getting some datafiles to our unix server location FTPIN.
Incoming File names will be present in the location "/xyz/test/" as below:
"infile_A1_YYYYMMDD",
"infile_A2_YYYYMMDD",
"infile_B1_YYYYMMDD",
"infile_C1_YYYYMMDD"
"infile_C2_YYYYMMDD"
Where A, B and C are the... (3 Replies)
Hello all I am a unix newbie....
I have a sun netra t1 and it is freaking out
I am connected to it through a console port, and it is just spitting out a ton on numbers and letters like below its just keeps going and going.
I have tried rebooting it and I cannot get it back to any kind of a... (1 Reply)
Hello,
I am using poderosa to open a terminal in an aix box.
The problem is when i use a sudo, the vi scroll doesnt work properly,
It will scroll through the first page, but when it reaches the end, only the last line scrolls, not the whole screen, making it hard to read and work.
Its like... (1 Reply)
Hi,
I'm writing scripts in perl and shell and want to add the oprion of
scrolling cursor on the screen when there is no output to the screen for long time. I saw it in some script but I don't have the source code.
Are anyone know how can I perform this ?
Thanks (1 Reply)
hi,
can anyone tell me how to enable arrow keys to scroll thru the commands on command prompt.
I am using C shell ( I know, in k shell, set -o vi would enable vi command history, but set -o doesnte exist in c shell) (4 Replies)
I have a file like this
QUEUE: <ITEM(69)> "/NLA///ACHO_EQU_IDX"
Q_KEY: <ITEM(69)> "/NLA///ACHO_EQU_IDX"
Q_TYPE: <VSTR(32)> "GEN_VSTR_INDEX"
... (1 Reply)
Perderabo *
Unix Daemon
*
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,071
Using head and tail like that is terribly inefficient. I decided to try a rewrite. Sheesh...I spent all morning on this....
Code:
#! /usr/bin/ksh
#
# scroller --- display text, but sleep every... (0 Replies)
When I enter Solaris mail command, I get many emails on the screen on scrolling. How can I get it in one by one. BTW, if I delete the long list of emails by d command at the end, rest of the emails comes in one after other :rolleyes:
Thanks... (0 Replies)
Hi all,
This is my first day on Linux shell!!!
So, I am trying to write a script that that will pick up pairs of files with the same name (not the same content) but that are different in one character (one is *R1 the other is *R2)...
Something like: look ate the files, whenever they are the... (3 Replies)
Discussion started by: ALou
3 Replies
LEARN ABOUT OSX
mitem_new
mitem_new(3X)mitem_new(3X)NAME
mitem_new - create and destroy menu items
SYNOPSIS
#include <menu.h>
ITEM *new_item(const char *name, const char *description);
int free_item(ITEM *item);
DESCRIPTION
The function new_item allocates a new item and initializes it from the name and description pointers. Please notice that the item stores
only the pointers to the name and description. Those pointers must be valid during the lifetime of the item. So you should be very careful
with names or descriptions allocated on the stack of some routines.
The function free_item de-allocates an item. Please notice that it is the responsibility of the application to release the memory for the
name or the description of the item.
RETURN VALUE
The function new_item returns NULL on error. It sets errno according to the function's failure:
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_SYSTEM_ERROR
System error occurred, e.g., malloc failure.
The function free_item returns one of the following:
E_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_CONNECTED
Item is connected to a menu.
E_SYSTEM_ERROR
System error occurred (see errno).
SEE ALSO curses(3X), menu(3X).
NOTES
The header file <menu.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
mitem_new(3X)