Hi,
Can anyone help me with the text editing I need here. I have a file that contains the following lines for example: (line numbers are for illustration only)
1 Hello world fantasy.
2 Hello worldfuntastic.
3 Hello world wonderful.
I would like to get all those lines of text that... (5 Replies)
How to emulate grep -o option in perl.
I mean to print not all line, only the exact match.
echo "2A2 BB" | perl -ne 'print if /2A2/'
2A2 BB
I want to print only 2A2. (2 Replies)
I am trying to match a pattern exactly in a shell script. I have tried two methods
awk '/\<mpath${CURR_MP}\>/{print $1 $2}' multipath
perl -ne '/\bmpath${CURR_MP}\b/ and print' /var/tmp/multipath
Both these methods require that I use the escape character. I am guessing that is why... (8 Replies)
I am writing a package manager in BASH and I would like a small snippet of code that finds lines that match exact input and count them. For example, my file contains:
xyz
xyz-lib2.0+
xyz-lib2.0
xyz-lib1.5
and "grep -c xyz" returns 4.
The current function is:
# $1 is the package name.... (3 Replies)
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Hi friends,
i am using the following grep command for exact word match:
>echo "sachin#tendulkar" | grep -iw "sachin"
output: sachin#tendulkar
as we can see in the above example that its throwinng the exact match(which is not the case as the keyword is sachin and string is... (6 Replies)
Hi, im extracting data from oracle DB. As the data is case sensitive, i have to extract the data which doesn't match exactly. im poor in unix scripting, can someone plz help me with a script. Here are the details.
Need to compare the second column of the each line of the file1.csv with the data in... (5 Replies)
I would like replace all the rows in a file if a row has an exact match to number say 21 in a tab delimited file. I want to delete the row only if it has 21 any of the rows but it should not delecte the row that has 542178 or 563421.
I tried this
sed '/\<21\>/d' ./inputfile > output.txt
... (7 Replies)
I am trying to create a cronjob that will run on startup that will look at a list.txt file to see if there is a later version of a database using database.txt as the source. The matching lines are written to output.
$1 in database.txt will be in list.txt as a partial match. $2 of database.txt... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT ULTRIX
lang
lang(5int)lang(5int)Name
lang - language names
Description
The language support databases used by are stored in the directory If either the language support databases are moved or you specify your
own language support database, it is necessary to set the INTLINFO environment variable to the new location of these tables. The syntax of
this environment variable is identical to See the reference page for more information.
Should you want to create your own database, use the reference page and the Guide to Developing International Software as references for
what information your database should contain. After you create the database, you can specify it by using the international compiler,
The following table defines the supplied settings of the LANG and LC_ environment variables.
---------------------------------------------------------------------
Database Language Territory Codeset Use
---------------------------------------------------------------------
ENG_GB.MCS English United Kingdom DEC MCS VT200 series
FRE_FR.MCS French France
GER_DE.MCS German Germany
ENG_GB.8859 English United Kingdom ISO Latin-1 VT300 series
FRE_FR.8859 French France
GER_DE.8859 German Germany
ENG_GB.646 English United Kingdom ISO 646 VT100 series
FRE_FR.646 French France
GER_DE.646 German Germany
---------------------------------------------------------------------
In addition to the default collation definition for the GER_DE.nnn language, Digital provides a character collation table that collates
information using the German telephone directory ordering of data. The following example shows how to set the variable to use this table
with the ISO Latin-1 codeset:
LC_COLLATE = GER_DE.8859@P_TELEPHONE
See Alsoic(1int), intro(3int), nl_langinfo(3int), setlocale(3int), environ(5int)
Guide to Developing International Software
lang(5int)