07-10-2009
@indusri
Next time use CODE-tags when posting code, data or logs to enhance readability and keep formatting/indetion etc. ty.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I would like to extract records of a file based on a condition. The file contains 47 fields, and I would like to extract only those records that match a certain value in one of the columns, e.g.
COL1 COL2 COL3 ............... COL47
1 XX 45 ... (4 Replies)
Discussion started by: risk_sly
4 Replies
2. Shell Programming and Scripting
Hi All,
I have two files say file1 and file2.
I want to check the number of records in file1 and if its atleast 2 (i.e., 2 or greater than 2 ) then I have to check records in file2 .If records in file2 is atleast 1 (i.e. if its not empty ) i have to set some conditions .
Could you pls... (3 Replies)
Discussion started by: mavesum
3 Replies
3. Shell Programming and Scripting
I have a file which is having fileds separtaed by delimiter.
Ex:
C;4498;qwa;cghy;;;;40;;222122
C;4498;sample;city;;;;34 2;;222123
C;4498;qwe;xcbv;;;;34-2;;222124
C;4498;jj;sffz;;;;41;;222120
C;4498;eert;qwq;;;;34 A;;222125
C;4498;jj;szxzzd;;;;34;;222127
out of these records I... (3 Replies)
Discussion started by: indusri
3 Replies
4. Shell Programming and Scripting
Hello Friends,
I have a file(InputFile.csv) with the following columns(the columns are pipe-delimited):
ColA|ColB|ColC|ColD|ColE|ColF
Now for this file, I have to get those records which fulfil the following condition:
If "ColB" is NOT NULL and "ColD" has values one of the following... (9 Replies)
Discussion started by: mehimadri
9 Replies
5. Shell Programming and Scripting
Hi Friends,
I have many files like below.
total,0.7%,0.0%,0.2%,0.0%,0.2%,0.7%,98.0%
total,1.9%,0.0%,0.4%,0.0%,0.0%,6.8%,90.6%
total,0.9%,0.0%,0.4%,0.0%,0.0%,0.0%,98.5%
total,1.4%,0.0%,0.7%,0.0%,0.2%,2.9%,94.5%
total,0.7%,0.0%,0.4%,0.0%,0.0%,0.9%,97.7%... (13 Replies)
Discussion started by: SunilB2011
13 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am looking for an awk script which should help me to meet the following requirement:
File1 has records in following format
INF: FAILEd RECORD AB1234
INF: FAILEd RECORD PQ1145
INF: FAILEd RECORD AB3215
INF: FAILEd RECORD AB6114
............................ (2 Replies)
Discussion started by: mintu41
2 Replies
7. Shell Programming and Scripting
Hello Gurus,
I have a requirement where I have to filter a value from some field which has 99% or greater than '99%'..
For ex:
The Date (file -- sample.csv) will be like below
Field1,Field2,Field3,Field4
860440512,844284992,16155520,99%
860440512,844284992,16155520,94%... (4 Replies)
Discussion started by: raghu.iv85
4 Replies
8. Shell Programming and Scripting
Hi,
I have a file with multiple lines(fixed width dat file). I want to search for '02' in the positions 45-46 and if available, in that lines, I need to replace value in position 359 with blank. As I am new to unix, I am not able to figure out how to do this. Can you please help me to achieve... (9 Replies)
Discussion started by: Pradhikshan
9 Replies
9. Shell Programming and Scripting
Hi,
I have following records in a file
more file1.txt
setting applicaction ABC for user
setting applicaction CDE for user
setting applicaction XXX for user
logging applicaction XXX for user
I need to filter out records which have strings " setting... (5 Replies)
Discussion started by: manid
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I tried filtering the records in a csv file using "awk" command listed below.
awk -F"~" '$4 ~ /Active/{print }' inputfile > outputfile
The output always has all the entries.
The same command worked for different users from one of the forum links.
content of file I was... (3 Replies)
Discussion started by: sunilmudikonda
3 Replies
LEARN ABOUT SUNOS
enhance
enhance(1) User Commands enhance(1)
NAME
enhance - enhanced command-line editing facilities
SYNOPSIS
enhance command [argument...]
DESCRIPTION
The enhance program provides enhanced command-line editing facilities to users of third party applications, to which one doesn't have any
source code. It does this by placing a pseudo-terminal between the application and the real terminal. It uses the tecla command-line edit-
ing library to read input from the real terminal, then forwards each just completed input line to the application via the pseudo-terminal.
All output from the application is forwarded back unchanged to the real terminal.
Whenever the application stops generating output for more than a tenth of a second, the enhance program treats the latest incomplete output
line as the prompt, and redisplays any incompleted input line that the user has typed after it. Note that the small delay, which is imper-
ceptible to the user, isn't necessary for correct operation of the program.It is just an optimization, designed to stop the input line from
being redisplayed so often that it slows down output.
Note that the user-level command-line editing facilities provided by the Tecla library are documented in the tecla(5) man page
DEFICIENCIES
The one major problem that hasn't been solved yet, is how to deal with applications that change whether typed input is echo'd by their con-
trolling terminal. For example, programs that ask for a password, such as ftp and telnet, temporarily tell their controlling terminal not
to echo what the user types. Since this request goes to the application side of the psuedo terminal, the enhance program has no way of
knowing that this has happened, and continues to echo typed input to its controlling terminal, while the user types their password.
Furthermore, before executing the host application, the enhance program initially sets the pseudo terminal to noecho mode, so that every-
thing that it sends to the program doesn't get redundantly echoed. If a program that switches to noecho mode explicitly restores
echoing afterwards, rather than restoring the terminal modes that were previously in force, then subsequently, every time that you enter a
new input line, a duplicate copy will be displayed on the next line.
FILES
/usr/lib/libtecla.so tecla library
~/.teclarc tecla personal customization file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
libtecla(3LIB), attributes(5), tecla(5)
SunOS 5.10 18 May 2004 enhance(1)