9 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I´m trying to input a plain text table and I want to output a csv file with semicolon field separator.
I have some problems with the \r and the fields with more of one line.. Some gnu util to do this without problems or awk solution?
I´m attaching the original plain table file and the needed... (2 Replies)
Discussion started by: faka
2 Replies
2. Shell Programming and Scripting
Hi everyone,
Here are the contents of a plain text file created by a SQL query:
SUM(T.TRNQTY) COUNT(D.TRNSEQ)
---------------- ----------------
1380 46
1393 59
2680 134
740 37
... (5 Replies)
Discussion started by: gacanepa
5 Replies
3. Shell Programming and Scripting
Hi everyone,
I want to know, if there is a way to modify one line in a text file with unix script, with out re-writing all the file.
For example, i have this file:
CONFIGURATION_1=XXXX
CONFIGURATION_2=YYYY
CONFIGURATION_3=ZZZZ
supose i have a command or function "modify" that... (7 Replies)
Discussion started by: Xedrox
7 Replies
4. Shell Programming and Scripting
Hi,
I want to display both html and plain in email in my script.
i tried the below code
code:
export MAILTO="ssi@a.com"
export CONTENT1="$htmlfile"
export CONTENT2="$plainfile"
export SUBJECT="INFO "
export MAILFROM="si@a.com"
(
echo "Subject: $SUBJECT"
echo "MIME-Version:... (4 Replies)
Discussion started by: sreelu
4 Replies
5. Shell Programming and Scripting
Hello!
I've got a very big file (from tokenization) which has one word for line.
How is it possible then to rebuild the "original" text, knowing that <s> and </s> are the sentence-delimiters?
My file looks like this:
<s>
&&
tanzania
na
Afrika
kwa
ujumla
ambiwa
na
taifa
kubwa... (6 Replies)
Discussion started by: mjomba
6 Replies
6. Shell Programming and Scripting
Hello,
I would like to export manual pages to plain text files.
man CommandName | col -bx > CommandName.txt
The above statement works successfully on Mac OS X. However, it often fails on my old Linux. The problem occurs if the source file of the manpage contains an escape sequence for... (5 Replies)
Discussion started by: LessNux
5 Replies
7. Programming
hi, i want to ask, how to make a plain text database (u need to call and search all the data manually) in PHP. i am going to apply it in UNIX os. anyone have any idea how to do it? most of the data only using mysql while i am forbid to do so. (2 Replies)
Discussion started by: grandios
2 Replies
8. Shell Programming and Scripting
Hi,
sorry for bothering with this easy problem but I can't understand...
I've a file like this:
"4","0x23a3"
"5","0x4234"
"11",""
"20",""
"11132","0x6456"
I would like to create a file like this:
4,23a3
5,4234
11,999999
20,999999
11132,6456
I've tried:
cat INPUT.txt | sed -e... (7 Replies)
Discussion started by: TheMrOrange
7 Replies
9. AIX
Root emailed me this message and thats ok it is supposed to. The thing that concerns me is that the ADMIN password came in plain text. I Xed it out for the purpose of this message of course.
Is there a way for me to set this so the password comes encrypted? OR is not included at all in the... (4 Replies)
Discussion started by: rocker40
4 Replies
lsdev(1M) lsdev(1M)
NAME
lsdev - list device drivers in the system
SYNOPSIS
driver | class] block_major] char_major] major] [major ...]
DESCRIPTION
The command lists, one pair per line, the major device numbers and driver names of device drivers configured into the system and available
for invocation via special files. A in either the block or character column means that a major number does not exist for that type.
If no arguments are specified, lists all drivers configured into the system.
If the option is specified, will not print a heading. This option may be useful when the output of will be used by another program.
The and options are used to select specific device drivers for output. If more than one option is specified, all drivers that match the
criteria specified by those options will be listed. These search options are divided into two types: name search keys (the and options)
and major number search keys (the and options). If both types of options are present, only entries that match both types are printed. The
same type of option may appear more than once on the command line with each occurrence providing an ORing effect of that search type. The
and options may not be specified at the same time.
The ability to process major arguments is provided for compatibility and functions like the option.
Options
List device drivers that match
class.
List device drivers with the name
driver.
List device drivers with a block major number of
block_major.
List device drivers with a character major number of
char_major.
List device drivers with either a character
major number or block major equal to major.
DIAGNOSTICS
The and options may not be specified at the same time.
A major number is malformed or out of range.
EXAMPLES
To output entries for all drivers in the class:
To output entries that are in the class that have either a block or character major number of
To get the character major number of into a shell environment variable:
WARNINGS
Some device drivers available from the system may be intended for use by other drivers. Attempting to use them directly from a special
file may produce unexpected results.
A driver may be listed even when the hardware requiring the driver is not present. Attempts to access a driver without the corresponding
hardware will fail.
only lists drivers that are configured into the currently executing kernel. For a complete list of available drivers, please run (see
sam(1M).
DEPENDENCIES
Since relies on the device driver information provided in a routine, may not list drivers installed by other means.
AUTHOR
was developed by HP.
SEE ALSO
sam(1M).
Section 7 entries related to specific device drivers.
lsdev(1M)