Hi,
This is the format of the file that i have
StartDate:10/01/06
EndDate :10/02/06
Cno Ccode
1 10
2 11
StartDate:10/03/06
EndDate :10/04/06
Cno Ccode
2 13
4 12
StartDate:10/01/06
EndDate :10/02/06 (5 Replies)
Hi All,
I would like to have a script which is able to perform the below.
Print the whole row if column1 which is "0001" for the below example is the first occurrence. Subsequent "0001" occurrence will not be printed out and so on.
Can any expert help ?
Input:
0001 k= 40
0001 k= 2... (7 Replies)
Hello All,
Bash Version: 4.1.10(1)
I'm trying to "verify" some user input. The User input will contain the "Absolute Path" a "Command" and any "Options"
of that Command.
For Example, say the user's input is:
user_input="/usr//local/myExample/check_process -p 'java' -w 10 -c 20"
I... (6 Replies)
Hi,
I have a file, which contains the following log data.
I am trying to print fromt he file the following data:
I have tried using sed, but I am getting from the first pattern
Thanks for your help. (5 Replies)
Hi,
Do anybody know how to use awk to count the pattern at specific column?
Input file
M2A928K 419 ath-miR159a,gma-miR159a-3p,ptc-miR159a 60 miR235a
.
.
Output file
M2A928K 419 ath-miR159a,gma-miR159a-3p,ptc-miR159a 60 miR235a 3
.
.
I plan to count how many "miR" in column 3... (2 Replies)
Hi,
I have a simple problem but i guess stupid enough to figure it out. i have thousands rows of data. and i need to find match patterns of two columns and print the number of rows. for example:
inputfile
abd abp 123
abc abc 325
ndc ndc 451
mjk lkj... (3 Replies)
Hi,
I have a input file(text file) with the following lines.
0x000000 0x5a80 0x0060 BRA.l 0x60 ;file:UserCall.s ;function:_user_call_table ;C_sourceLine:24
0x000002 0x1bc5 RETI ;file:UserCall.s ;function:_user_call_table ;C_sourceLine:30
0x000003 0x6840 MOV R0L,R0L ;file:UserCall.s... (6 Replies)
Hi folks,
I have a file with lots of lines in a text file,i need to print the occurence number after sorting based on the first column as shown below, thanks in advance.
sam,dallas,20174
sam,houston,20175
sam,atlanta,20176
jack,raleigh,457865
jack,dc,7845
john,sacramento,4567
... (4 Replies)
Discussion started by: tech_frk
4 Replies
LEARN ABOUT HPUX
tput
tput(1) General Commands Manual tput(1)NAME
tput - query terminfo database
SYNOPSIS
type] capname...
type] capname [parms...]
DESCRIPTION
The command uses the database to make terminal-dependent capabilities and information available to the shell (see terminfo(4)). The com-
mand outputs a string if the attribute (capname) is of type string, or an integer if the attribute is of type integer. If the attribute is
of type boolean, simply sets the exit code for TRUE, for FALSE), and produces no output.
Command-line Arguments
The command recognizes the following command-line arguments:
Indicates the type of terminal.
Normally this flag is unnecessary because the default is taken from the environment variable
capname Indicates the attribute from the database. See terminfo(4). In addition, the following capnames are supported:
Echo the clear-screen sequence for the current terminal.
Echo the initialize sequence for the current terminal.
Echo the sequence that will reset the current terminal.
parms If the capname takes optional numeric parameters, the parms will be placed in the string output by
The capnames are read from stdin and multiple capnames are allowed. Only one capname is allowed per line when reading
from stdin.
EXTERNAL INFLUENCES
Environment Variables
determines the locale to use. This overrides settings of other environment variables.
determines the language to use for messages.
determines the terminal type if the option is not specified.
EXAMPLES
Echo clear-screen sequence for the current terminal.
Print the number of columns for the current terminal.
Print the number of columns for the 70092 terminal.
Set shell variable to stand-out-mode sequence for current terminal.
This might be followed by a prompt:
Set exit code to indicate if current terminal is a hard copy terminal.
Clear the screen, move the cursor to line 10, column 20 and turn on bold.
RETURN VALUE
If capname is of type boolean, then the exit code is set to for true and for false.
If capname is not of type boolean and fails, an error message is printed, and exit code is set to one of the following depending on the
failure:
The capability name is of type integer and does not exist.
Usage error.
Unknown terminal type.
Unknown capability name.
An error occurred.
If the exit code is a is printed if a capability name of type integer is requested for a terminal that has no entry for that capability
name in the database (such as
FILES
Terminfo data base
Definition files
SEE ALSO
stty(1), untic(1M), terminfo(4).
STANDARDS CONFORMANCE tput(1)