![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cut awk dummy question :) | sopel39 | UNIX for Dummies Questions & Answers | 14 | 11-14-2007 10:14 AM |
| using grep for a dummy | mkosucu | UNIX for Dummies Questions & Answers | 3 | 10-28-2007 12:56 AM |
| Curious Dummy | highway39 | UNIX for Dummies Questions & Answers | 1 | 08-31-2006 04:22 PM |
| Dummy Needs Help | amygdala | UNIX for Dummies Questions & Answers | 4 | 08-31-2001 08:14 PM |
| Real Dummy here!! | Keith | UNIX for Dummies Questions & Answers | 2 | 02-06-2001 10:18 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Dummy need help :(
This drive me nut, any can show me how to do it ??
str1='Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004' and str2='Case Modify 10001' if str1 ~ str2 then str1='Report Create 3417176211|Case Modify 10002 20002 30003 40004' Thanks, |
| Forum Sponsor | ||
|
|
|
|||
|
The problem I got is if str1 keep larger , if str1 !~ str2 then str2 will be add to str1
str1 = str2 + str1 and keep go on and we really dont know what field str2 is matching in str1 Sorry for my English |
|
||||
|
Quote:
have you tried the suggested solution? And if so, what was the result of that? |
|
|||
|
you mean this ?
Quote:
If str1 = 'A|B|C|D|E..' and str2 is A or B or D or E ... then str1 will remove A or B or C or D or E then str1 = str1 "|" str2 again |
|
||||
|
Quote:
Again have you tried the posted code? Can you show an example where the output is not what you desire AND provide a sample of desired results. |
|
|||
|
Here is my code and I solved the problem with CDxAcct but can not figure out how to remove the duplicate "Case Modify ID" or remove "Case Access ID"
Remove duplicate ??? Cheers, |
|||
| Google UNIX.COM |