10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have this code below that only prints out certain columns from the first two rows (doesn't affect rows 3 and beyond). How can I do the same on a partial header pattern “G_TP” instead of having to know specific column numbers (e.g. 374-479)? I've tried many other commands within this pipe with no... (4 Replies)
Discussion started by: aachave1
4 Replies
2. UNIX for Dummies Questions & Answers
Following is the output of a command ran inside the script:
2015-01-29-05-38-02 5 2015-01-29-05-38-02 5 2015-01-29-05-38-02 5 2015-01-29-05-38-02 5 2015-01-29-05-38-02 5 2015-01-29-05-38-03 5 2015-01-29-05-38-03 5 2015-01-29-05-38-03 5 2015-01-29-05-38-03 5 2015-01-29-05-38-03 5... (8 Replies)
Discussion started by: Devendra Hupri
8 Replies
3. Shell Programming and Scripting
Hi All,
Need help in this requirement.
I have fileA with one column and fileB with 26 columns.
I need to match the value from fileA with fileB, if matches I have to return that value from fileB, and the next value, 5th and 6th values.
NOTE- the matching value's position changes in... (7 Replies)
Discussion started by: vamsikrishna928
7 Replies
4. Shell Programming and Scripting
Hi Friends,
my input file is this way
chr1 100 120 abc
chr1 100 121 def
chr1 100 122 ghi
chr2 240 263 kil
chr2 240 276 ghj
chr2 255 290 hjh
my output
chr1 100 122 abc
chr2 240 276 kil
chr2 255 290 hjh
Basically, I want to match on first and second column and then print the... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
5. UNIX for Advanced & Expert Users
Hey guys,
I have a file with an ID which I'm using to grep out the original record from another file. Problem is I have special characters in the original file, and grep is returning only a partial record. How can I get around this?
Appreciate your help!
Pete (3 Replies)
Discussion started by: peteroc
3 Replies
6. Shell Programming and Scripting
Hello, this is probably a simple request but I've been toying with it for a while.
I have a large list of devices and commands that were run with a script, now I have lines such as:
a-router-hostname-C#show ver
I want to print everything up to (and excluding) the # and everything after it... (3 Replies)
Discussion started by: ippy98
3 Replies
7. Shell Programming and Scripting
Hi there!
New user to UNIX scripting. Had a question I was stuck on.
I've been trying to make a script(for a larger project) that would search a file(lets say playerlist).
the file is already formatted into columns so it may look like
First name(1-10) Last Name(11-20) address (21-30)
... (23 Replies)
Discussion started by: Sagramor
23 Replies
8. Shell Programming and Scripting
I have the following requirement.
file1.txt (this could contain 5 million rows)
ABC 1234 XYZ .... (3000 bytes)
QRD 4612 GHT .... (3000 bytes)
I need to create
file2.txt
1234
4612
I have a EAI process to change file2.txt into
file3.txt
4555
3743
Then I would have to use... (0 Replies)
Discussion started by: jostul
0 Replies
9. Shell Programming and Scripting
Hello,
I am just getting starting with awk and wondering if anyone could help with the following problem.
I have a large file of data, 50,000 rows x 6 columns. I would like to search in blocks of 500 rows for a maximum value in a specific column and compile an output file that prints the... (3 Replies)
Discussion started by: xb_analysis
3 Replies
10. UNIX for Dummies Questions & Answers
Command output is given to the console. As in the following case -
wc -l filename
produces following output
nn filename
From this, I am only interested with nn(rowcount). Cant we simply extract it thr console?
I also tried with null device, I know as - /dev/null
wc -l filename >... (1 Reply)
Discussion started by: videsh77
1 Replies
menu_format(3CURSES) Curses Library Functions menu_format(3CURSES)
NAME
menu_format, set_menu_format - set and get maximum numbers of rows and columns in menus
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include <menu.h>
int set_menu_format(MENU *menu, int rows, int cols);
void menu_format(MENU *menu, int *rows, int *cols);
DESCRIPTION
set_menu_format() sets the maximum number of rows and columns of items that may be displayed at one time on a menu. If the menu contains
more items than can be displayed at once, the menu will be scrollable.
menu_format() returns the maximum number of rows and columns that may be displayed at one time on menu. rows and cols are pointers to the
variables used to return these values.
RETURN VALUES
set_menu_format() returns one of the following:
E_OK The routine returned successfully.
E_SYSTEM_ERROR System error.
E_BAD_ARGUMENT An incorrect argument was passed to the routine.
E_POSTED The menu is already posted.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5)
NOTES
The header <menu.h> automatically includes the headers <eti.h> and <curses.h>.
SunOS 5.11 31 Dec 1996 menu_format(3CURSES)