How to choose some elements containing some Specific alphabets from an array?

for example, an array contains the following elements: AA1 AA2 AAB CAA ABC   BBE  BAA  . I want to choose out the elements containing AA,that is
AA1 AA2 AAB CAA BAA. Can you give me the relevant procedures? thank you!

as the picture 
Attachments:
11.jpg ‏15 KB

Similar Messages

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show pr

    How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show projects on it)?    I tried backup & restore without success.  I have also found the .psess files and copied them to the catalog in the new computer but when the sides shows are opened none of the images or music is there.  Only the text that I entered shows.  I have even tried to replicate the file paths from the XP computer to the new computer to see if that will help.

    UPDATE:  By a stroke of luck I happened to find a catalog link (a PSE8D file) in the 'My Catalog' file where the imported data was stored.  When I clicked on it to investigate what is was 'magically' all of my transferred projects appeared in Organizer.  Upon further investigation I found that the projects transferred from my XP computer were stored in a hidden catalog that had to be accessed through the Custom Location option in Catalog Manager (accessed by clicking File then Catalog then Custom Location).  No Windows or Elements search revealed this fact.  I am appreciative that I just got lucky.  The Adode/Photoshop company was absolutely of no help.  If fact to me their structure is designed to avoid contact with their customers unless you're buying a new product.  Their products have many good features (even though user unfriendly) and it's a shame they don't value their customers more once the sale is completed. 
    Bottom line:  All of the projects (sideshows) have been recovered and work in my new Windows 7 computer.  I hope my experience helps others. 

  • How to transport the data contains in the table from development to product

    How to transport the data contains in the table from development to production.
    Please let me know ASAP.

    Hello Dilip
    Create a workbench request and add the following entries to the request:
    Object key: R3TR TABU <name of z-table>
    For this object add the following value key:
    - client-independent table: '*'
    - client-dependent table (e.g. client 100): '100*'
    See also: [SAP Network Blog: Transport Table Entries|/people/community.user/blog/2007/01/07/transport-table-entries]
    Regards
      Uwe

  • @FINDSTR - How to find an element containing . (dot) when . (dot) is wildcharacter

    I'm checking a LogFile containing FileName(s) and want to Include/Exclude files according to FileType.
    How to use @FINDSTR  to find an element containing . (dot) when . (dot) is wildcharacter...???

    PowerShell ${"%MainDir%\%FullPath%\%FullFileName%"} = Get-Content ${"%MainDir%\%FullPath%\%ListFileName%"}
    |Select-String '\.mp3|\.mp4|\.m4a|\.flac|\.cue|\.ogg|\.ape|\.wav|\.wv'
    That wont work. Two things wrong
    First thing
    Get-Content expects a filename  like Get-Content c:\music.txt  
    or  Get-Content
    "%MainDir%\%FullPath%\%ListFileName%"  
    Get-Content ${c:\music.txt} will try to get the filename in the file c:\music.txt and not use c:\music.txt
    itself.
    Second Thing
    ${"%MainDir%\%FullPath%\%FullFileName%"} = is wrong, don't use the " inside the { }, the { } act as a
    quotes
    for example ${C:\My Documents\Music.txt} = is ok, that will work, this is a variable
    PowerShell ${"%MainDir%\%FullPath%\%FullFileName%"} = Get-Content ${"%MainDir%\%FullPath%\%ListFileName%"}
    |Select-String '\.mp3|\.mp4|\.m4a|\.flac|\.cue|\.ogg|\.ape|\.wav|\.wv'
    Should be 
    PowerShell ${%MainDir%\%FullPath%\%FullFileName%} = Get-Content "%MainDir%\%FullPath%\%ListFileName%"
    |Select-String '\.mp3|\.mp4|\.m4a|\.flac|\.cue|\.ogg|\.ape|\.wav|\.wv'

  • How to delete some of records from wf_notifications table any API Name?

    Hi All,
    I want to delete some of records from wf_notifications table , can any one tell API' name and Back end delete process.
    Thanks,
    Ramu
    Edited by: Ramu on Mar 20, 2013 5:42 AM

    Hi ,
    I hv done below script, now it's working fine.
    DECLARE
    CURSOR csr_transaction_id IS
    SELECT   hat.transaction_id,
             hat.item_type,
             hat.item_key,
             ppx.employee_number,
             hat.section_display_name
      FROM   hr_api_transactions hat, per_people_x ppx
    WHERE   hat.process_name = 'HR_PERSONAL_INFO_JSP_PRC'
             AND hat.selected_person_id = ppx.person_id
             AND ppx.employee_number IN
                      ('100024773',
                       '100024820',
                       '100024859',
                       '100024879',
                       '100024902',
                       '100024937',
                       '100025137',
                       '100026470',
                       '610014755',
                       '610017039')
    order by  ppx.employee_number;
    BEGIN
      dbms_output.put_line('***Deleted all Transactions  and Notifications of below Employee Personals Tranactions ***');
       FOR my_cur_v IN csr_transaction_id
       LOOP
       /*Delete all Transaction_id's in hr_api_transactions,hr_api_transaction_steps,hr_api_transaction_values and hr_api_transaction_steps_bk tables */
        hr_transaction_swi.delete_transaction
                              p_transaction_id =>my_cur_v.transaction_id,
                              p_validate => hr_api.g_false_num
        wf_engine.abortprocess  (
                                  itemtype => my_cur_v.item_type,
                                 itemkey => my_cur_v.item_key
         /* Deleted all Notification_id's and item_key's in wf_item_activity_statuses,wf_items,wf_item_attribute_values,wf_notifications     Table */                     
         wf_purge.items (
                          itemtype => my_cur_v.item_type,
                         itemkey => my_cur_v.item_key
        dbms_output.put_line('Emp No --'||my_cur_v.employee_number||'Transaction_id :'||my_cur_v.transaction_id||'Emp Personal Info :'||my_cur_v.section_display_name||
                              'Item Type :'||my_cur_v.item_type|| 'Item Key :'||my_cur_v.item_key); 
       END LOOP;
       commit;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line('hr_transaction_swi.delete_transaction api goest to exception block'    ||sqlcode|| '  '||sqlerrm);
    END;  
    /thanks,
    Ramu

  • Can't delete some specific music from iPad

    I'm getting frustrated now.  Tried everything but unable to delete a specific album from my ipad.  It has synced with my macbook, but it simply cannot be removed, no matter what!  It shows on the left hand device music drop down, but not as a selected album on the music page.

    Thanks for the response but that's not it. I've deselected sync music from within itunes, and the music is still there
    Any more suggestions?

  • How do I removing a specific item from an Array?

    Hi there.
    I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).
    How do i remove a specific item from within an array?
    Can someone help me? Thanks a lot.

    i haven't noticed anyone showing deference because of the points.  in fact, i've seen some people (a minority, to be sure) be just obnoxious about it.  i never encountered that before:  some people feel they have power because they can dole out points.
    but overall i agree with you:  the loss of the list of threads i am participating in, along with the most recent posters name, is a significant drawback of the new forums.  and there's nothing new in these forums that offsets that drawback.
    in addition, i think we've lost way more than 1/2 the older threads.  that's a lot of information that's no longer available.

  • How to choose diffetent PO types in R/3 from a SC in Classic Scenario

    Hello everyone,
    I am working with SRM 5.0 in a classic scenario and I have a problem. I create a SC, then it is sent to sourcing cockpit where I assign it a vendor to create a PO, but I can't choose what kind of PO I want to create.
    In PPOMA_BB, the user has at least 2 different PO's in attribute BSA and attribute DP_PROC_TY. When I create a PO from a Bid invitation I can choose this kind of POs.
    Do you know how to choose different POs type from SC??
    Thanks,
    Ivá

    Hi,
    For backend products,In standard you can not choose what PO you want. By default the backend document type 'EC' is chosen. In number ranges for SC followon documents the interval number 'PO' would correspond to backend EC document external interval number. This is the standard behaviour though you might have maintained BSA attribute with other values in addition to EC.
    For local products you can choose the PO transaction type. After youclick on create purchase order, in the next screen you will get an option choose your transaction type, provided you have maintained these in PPOMA_BBP for BSA attribute.
    Hope this clarifies.
    Rgds,
    RRK

  • How to search for specific match from an array?

    Hi Mike,
    Thanks for the reply.
    I am reading a position of switches whether ON/OFF. It is nothing but the digital inputs status from the field. I am Indexing that array, and connect it to the LED indicators to show the relevant status. Also I want to raise an alarm  once, for the ON switches.  By using Search 1D array, I got the first TRUE match index from the array. But if I want to know all the occurrences of ON condition (TRUE from an array of booleans) from an array of switches. How to do that?
    Hope this clarifies.
    Thanks
    Kousy

    I almost missed this message because you started a new thread.
    In any case, the code altenbach posted will give you an array of the indexes that are set to true. So it sounds like that is at least part of what you want. The alarm you mention, is that one "master" alarm if any of them are true, or is it a separate alarm for each bit?
    If it is one "master" alarm for all of them the logic menu has a function for ORing all the elements in a boolean array. Also when you say "alarm" what is the nature of this alarm? A dialog box? a flashing light (real or on the applications's front panel)? message in a status display?
    The attached code shows one possible direction by adding onto altenbachs code the ability to accumulate a single error message based on the states of individual bits. (BTW: The other alternative that you might see would be to pass the array into a loop and use a case to append a message of the bit is true. The advantage of the one in the combined VI is that the loop only iterates for the number of true bits +1. Where as the other approach would have to look at all the bits one at a time.)
    In a sense this is why I asked for clarification because there are a lot of things you can do when parsing an array like this.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    TRUEadditions.vi ‏31 KB

  • Selecting specific data from an array controlled by a boolean array

    Hi!
    I am trying to select specific data from a string array. The string data should be auto indexed to a string array indicator, but I just want specific values to be placed in the new array.
    A boolean array controls when data should be auto indexed to the new string array. Every time a true appears in the for loop, the string data should be placed in the new string array, but I have a problem. I manage to pick the specific data to place in the new array, but i also get empty strings in the array when I am not supposed to write to the array. Instead of empty strings, I want my string data to be "compact". So when bool number 3 in the array is true, I want that string data to be in row 1, and not row 3.
    Can you help me sort this one out?
    Best regards
    Is my avatar the dog from the fraggle rock?
    Attachments:
    testprogram_forum.vi ‏10 KB
    Spørsmål lwforum.jpg ‏74 KB

    Here is a different version that also changes the size of the array for the indicator when the value is changed. You could do as much as you want here.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    testprogram_forum 2.vi ‏12 KB

  • How can I get some specific value from AP

    Hello,
    I have AP 350 or 1100 and management software CISCO WORKS for WINDOWS. I need for our customer information how he can get some SNMP specific information OID like signalstrange or something another specific OID. We can get traps from AP but it's not what we can.
    Do you know somebody any helps?
    Thank you
    David

    For Windows
    Download MG-SOFT Corporation's MIB-Browser, its evlauation version.
    Download the AP MIBs from Cisco.
    Compile the MIBs using the MG-SOFTs MIB-Explorer and then you see the OID values and expalnations.

  • How to display some data fetched from a Custom assembly?

    Here's my simplified scenario.
    I have a small .net library that connects to a database, fetches some data and does a bit processing.
    In an SSRS report, I am able to reference the assembly and can call a methods that returns a string list (for instance). It works just fine with appropriate permissions set (both in VS and Report Server).
    Now that I have the string list, how do I display it in some kind of a list? Is it possible?
    Thanks in advance for any help.

    Hi there,
    You could convert the list to a dataset and use the data table or list control to display.
    http://technet.microsoft.com/en-us/library/ms152917.aspx
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • How to exclude some ORA error from OEM monitoring

    Hi,
    We have been getting ORA-3217 alerts and to avoid them we have specified like this in metric and policy settings..
    Warning ------ORA-0*(600?|7445|4[0-9] [0-9] [0-9])(?!3217)[^0-9]
    critical---ORA-[0-9]*[^0-9]*(?!3217)
    since then it stopped sending all ORA alerts, anything wrong in the above thresold.
    Regards
    Edited by: user602441 on Aug 13, 2009 8:42 AM

    I have the similar problem. I have ORA- in the Critical threshold and I just want to exclude ORA-00060 from critcial threshold. What will be the syntax for that? I do not want to filter it. I still want to recieve it as warning.
    Thanks
    Rinky
    Edited by: user11991081 on Oct 15, 2009 3:20 PM

  • How do I move Elements 11 photos and catalogue from iMac to new iMac both running Yosemite?

    I've been researching best way to move my photos and catalogue from my current iMac to my new iMac.  I'm using Elements 11.  Both iMacs running Yosemite.  I know I need to deactivate the current computer's version of Elements if putting it on the new one runs me over the license limit - I don't think it will.  I have read enough to be pretty sure I have to NOT migrate the Elements 11 program to the new iMac because it won't work properly - I'll have to reinstall it from my installation disc on the new iMac.  So far, so good. 
    Now, I want the easiest way to get the photos on the new iMac, in the same folders, and preserve the catalogue and my current ratings on the photos.  I am unclear on how the catalogue works with its backup and restore function.  Should I move all my photos in their folders in exactly the same locations on my new iMac before installing Elements and trying to restore the catalogue?  I read about the ways to restore the catalogue and I am unsure about whether it just looks for the pictures in the places it expects to find them (which will be the same if I copy everything on to the new iMac first), or whether it restores the pictures where it thinks they should be (in which case I should NOT put the pictures on the new iMac before restoring the catalogue or I'll end up duplicating everything).   Also I have read - and been confused by - the options about restoring catalogue in new location, old location, etc.  I don't want my folders changed.  I have my pictures stored where I want them and I want to keep them there - and I'd prefer not to add some extra layer under the basic My Pictures on my iMac.
    I have stored the most recent version of the catalogue, with all photos reconnected, on an external drive.  All the pictures in the catalogue have their meta-data associated with them.  I hope that this will allow me to preserve ratings.  Going through thousands of pictures to find the really good ones again is a time-consuming mess.  When I went from Windows to Mac 3 years ago - I lost the catalogue and all ratings.  When I upgraded from Elements 9 to Elements 11, I lost the catalogue and all ratings.  I do NOT want to ever go through that again.

    I appreciate your answer and agree that it is correct, but you told me nothing I did not know.  There is an Elements technical paper which says this in much greater detail, but still does not answer the questions I was trying to ask.
    The catalogue file seems much too small to include my thousands of photos.  Are you telling me that it has magically reduced the size of all those photos - from 64 GB to 33 GB, and added the catalogue information - so that the photos will just appear out of nothing but that smaller catalogue file when I restore catalogue?  If so, will you explain the options of same location, new location, new location with existing file structure, etc? 
    I understand installing the program.  I understand that I should backup the catalogue (I've done it).  I understand I will use restore to restore the catalogue.  I found all this on other sites.  I need someone, somewhere, to explain to me if I need to copy the photos themselves to their new location before I restore catalogue - or not.  And which option in restore to use.  I thought I explained this in my original question.  Any help on these questions about matters I do not understand will be appreciated.

Maybe you are looking for

  • Can I buy a SIM in the UK for the World Phone and use on local service?

    I am travelling to the UK and have 2 old World Phones. Can I buy a Vodaphone "pay as you go" SIM card and activate these phones under local UK service for my kids while we are there? I really only need phone and text or BIM service. I believe the UK-

  • Tomcat 4.0.6 503 error - Need help !

    I am running jsp and servlets in tomcat 4.0.6 server..(commercial server)... My application runs well in my pc.. but when i upload the webapps/xxx folder into mainwebsite_html folder in the server a 503 error with "the servlet jsp is currently unavai

  • Further Adobe Pro 8 problems

    Here are some further problems I have encountered with Acrobat, after upgrading from CS2 Design to CS3 Design Premium. In addition to Acrobat 7 refusing to launch unless an administrator's password is typed in, now Safari will not open PDF files inli

  • International calling / Vonage App

    I just purchased my first bb yesterday for the sole purpose of utilizing the Vonage app for international calling.  (I am with Sprint therefore cannot get Iphone).  However, I just learned today that due to Blackberry's rules you cannot utilize the V

  • MPLS Traffic Shaping/Policing on PE-CE link

    Hi everyone, We are considering to upgrade our remote sites to MPLS/VPN type of connectivity from ATM/FRASI. Lets say we take a 10Mb link in the main office and 2-4Mb links for remote sites. Majority of servers (services) reside in main site, so majo