12-08-2008
Matching
Can anyone give a sample example of comparing two strings using matching concept in unix shell programming.
say we have two strings,S1 = ravi and S2 = kiran
how can i use matching concept to compare S1 and S2
Can anyone please help me.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
i have a program where i have to get a character from the user and check it against the word i have and then replace the character in a blank at the same position it is in the word. (7 Replies)
Discussion started by: nehaquick
7 Replies
2. UNIX for Dummies Questions & Answers
Hi Folks,
I have the following requirement:
I have a file that is containing numerous queries. The tables name mentioned in the queries are in the following format : SchemaName.Tablename. e.g COPDB.TableName.
I need to take out all the COPDB.TableName pattern and write it to a different... (0 Replies)
Discussion started by: Siv_Pat
0 Replies
3. Shell Programming and Scripting
Hi Folks,
I have the following requirement:
I have a file that is containing numerous queries. The tables name mentioned in the queries are in the following format : SchemaName.Tablename. e.g COPDB.TableName.
I need to take out all the COPDB.TableName pattern and write it to a different... (6 Replies)
Discussion started by: Siv_Pat
6 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have a IF loop followed by THEN and a a closing FI.I am trying to find the matching 'FI' for 'IF'.I am wokring on modifying 2000 line code and its become extremely difficult to find the matching of 'IF' manually for on e of the block.
Can you guys throw some light please?
Thanks... (2 Replies)
Discussion started by: vemana
2 Replies
5. Shell Programming and Scripting
Hello all,
simple matching and if not match problem that i can't figure out.
file1
hostname:
30 10 * * * /home/toto/start PROD instance_name1 -p
00 9 * * * /home/toto/start PROD instance_name2 -p
15 8 * * * /home/toto/start PROD instance_name3 -p
hostname2:
00 8 * * *... (5 Replies)
Discussion started by: maverick72
5 Replies
6. Shell Programming and Scripting
hello all,
this is probably very simple for you guys but i am trying to achive something like below...i have 2 files...file 1 has entries like below
DB1:NS
DB2:NS
DB3:NS
DB4
DB5:NS
and file2 as below
DB1
DB2
DB5
i was to write a loop statment were if there is a matching... (1 Reply)
Discussion started by: abdul.irfan2
1 Replies
7. Shell Programming and Scripting
Hi guys
I am trying to create a regular expression to match a word with the following pattern:
any letter(one or more occurence) followed by a digit(one or more occurence) followed by any letter(one or more occurence)
I have tried the following regex but it fails to find what I need:
$... (4 Replies)
Discussion started by: aoussenko
4 Replies
8. Shell Programming and Scripting
Hi, I have text file:
Name: xyz
Gender: M
Address: "120_B_C; ksilskdj; lsudlfw"
Zip: 20392
Name: KLM
Gender: F
Address: "65_D_F; wnmlsi;lsuod;,...."
Zip:90233I want to insert 2 new lines before the 'Address: ' line deriving value from this Address line value
The Address value in quotes... (1 Reply)
Discussion started by: ysrini
1 Replies
9. Shell Programming and Scripting
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies
10. Shell Programming and Scripting
Using the awk below I am able to combine all the matching dates in $1, but I can not seem to remove the non-matching from the file. Thank you :).
file
20161109104500.0+0000,x,5631
20161109104500.0+0000,y,2
20161109104500.0+0000,z,2
20161109104500.0+0000,a,4117... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
make_strings
make_strings(1) GNUstep System Manual make_strings(1)
NAME
make_strings - tool to build lists of localizable strings from Objective-C files
SYNOPSIS
make_strings [--help] [--verbose] [--aggresive-import] [--aggressive-match] [--aggressive-remove] [-L languages] files.[hmc...]
DESCRIPTION
make_strings parses Objective-C files and builds lists of localizable strings. It then creates new .strings files or merges the strings
with existing .strings files. It's fairly intelligent when matching old and new strings, and produces .strings files that are (supposed to
be) easy for a translator to work with.
make_strings accepts the following options:
OPTIONS
--help Prints a short list of available options.
--verbose
Prints additional information while processing.
-L languages
Specify which languages to process. Multuple -L options are accepted, or multiple languages defined in one -L flag.
--aggressive-import
Activates --aggresive-match and automatically removes "dummy" entries that are added by importing .strings files which were not cre-
ated by make_strings program. This option is suitable when make_strings is run for the first time and there is an existing .strings
file which contains a fairly accurate translation.
--aggressive-match
This option will make make_strings assume that matching keys should have matching translations. This can save lots of work, but it
increases the risk of erroneous translation.
--aggressive-remove
Removes obsolete strings/keys.
EXAMPLES
make_strings -L "English Swedish Russian" *.[hm]
SEE ALSO
GNUstep(7).
AUTHORS
make_strings was written Alexander Malmberg <alexander@malmberg.org>.
This manual page was added by Yavor Doganov <yavor@gnu.org>.
COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
GNUstep August 16, 2009 make_strings(1)