Anyone here can help with a quick bash script?

I am no coder, by any means, unless you consider html code....I don't
any how, here's what i'm trying to do, if someone who knows bash would like to assist?
i have a folder, with a bunch of subfolders, inside these subfolders, is a setup.xml file.
and inside these setup xml files is a line titled product code with a string after it.
i could really use a script or sorts to go through and output all those product codes into a single text file right now, otherwise i'm sure i'll be here for hours
anyone care to help?

ooooh.......that works
tweaked it a bit and ran it from the source folder, worked well, this is what i ran though
find -name \Setup.xml -exec grep 'productcode' '{}' \; > theFile
does this give you any idea as to the file structure of the xmls?
<Setups productcode="ICA.productcode">
<Msi productcode="UpdateX3.exe" file="WPO15\UpdateX3.exe" cmdline="/s" adminsupport="0" condition="UpdateX3=1"/>
<Msi productcode="{6E274E81-F9E1-43A2-9672-E45F655953FA}" file="WPO15\UpgradesX4.msi" cmdline="ADDLOCAL=ALL" progresstext="Str.UpgradeProgressText" adminsupport="0" condition="REMOVE_14" scheduled="0" ignorereturn="1" />
<Msi productcode="{DCDAB2ED-5741-4C30-A1A4-0FCB8A529001}" file="ICA_X4.msi" cmdline="REMOVE=ALL" progresstext="Str.UpgradeProgressText" adminsupport="0" condition="REMOVE_14" scheduled="0" ignorereturn="1" />
<Msi productcode="{92B60B3B-7DF3-4BF7-8823-9F17A9EEA31E}" file="WPO15\Setup.msi" progresstext="Str.ProgressText.Common" cmdline="ICA_ALL_PUBLIC" managed="1">
<Dbm productcode="{71D2F8EE-9D45-4D95-A6F6-F6433C2B94B5}" file="WPO15\ENSystem.msi" progresstext="Str.ProgressText.Common" adminsupport="0"/>
<Dbm productcode="{EC61C6D9-159B-4B14-AAF3-AF33FCFA50DD}" file="WPO15\ENWP.msi" cmdline="ADDVIEWERS=[ADDVIEWERS]" progresstext="Str.ProgressText.WP" />
<Dbm productcode="{DAEDCD3D-B981-4F10-B17B-764753EDAF9F}" file="WPO15\ENQP.msi" progresstext="Str.ProgressText.QP" />
<Dbm productcode="{378BAC91-3AE8-45F0-90E4-4F81E3EAEBC5}" file="WPO15\ENPR.msi" progresstext="Str.ProgressText.PR" />
<Dbm productcode="{17C5A285-F7B6-492B-8F3B-343D02B84D75}" file="WPO15\ENCommon.msi" progresstext="Str.ProgressText.Common" cmdline="ESTIMATEDSIZE=[ICA.DiskSpace.Drive.Required.0] PIDPREFIX=WP15" />
<Dbm productcode="{D7643510-C1AE-44AD-B0F9-0665C4D73BFD}" file="WPO15\LegalTools.msi" progresstext="Str.ProgressText.WP" />
<Dbm productcode="{CD5C6C29-E6CB-4DF3-B45F-A04087B1C294}" file="WPO15\ENTemplates.msi" progresstext="Str.ProgressText.WP" />
<Dbm productcode="{E67732DE-3387-4F1E-BDDA-2D0C08BC025B}" file="WPO15\ENFilters.msi" progresstext="Str.ProgressText.Common"/>
<Dbm productcode="{6E4B1E42-A831-44B4-A705-D006F68560EC}" file="WPO15\ENGraphics.msi" progresstext="Str.ProgressText.Common"/>
<Dbm productcode="{19B4CD07-1919-4002-B28F-A5D2027026E0}" file="WPO15\IPM.msi" progresstext="Str.ProgressText.Common" cmdline="PCUSOURCEID=[PCUSOURCEID] ALLOW_PRODUCTUPDATES=&quot;[ALLOW_PRODUCTUPDATES]&quot; SERIALNUMBER=&quot;[SERIALNUMBER]&quot; USERNAME=&quot;[USERNAME]&quot; SHOW_EULA=[AcceptLicense] SKU=[SKU]"/>
<Dbm productcode="{E539B721-4458-4EFC-8BD0-04D4842051AE}" file="WPO15\EN.msi" progresstext="Str.ProgressText.EN" cmdline="SKUDATA=&quot;[SKUDATA]&quot;" />
<Dbm productcode="{D4167D08-0F61-4F44-BC3F-26B4960745C4}" file="WPO15\ENSkins.msi" progresstext="Str.ProgressText.EN" />
<Dbm productcode="{64459BD5-3AE8-4689-B7B0-D57B667D8399}" file="WPO15\ENPExp.msi" progresstext="Str.ProgressText.Common" />
<Dbm productcode="{1F0D7D15-8A36-4AE4-8573-70BEA7DF379D}" file="WPO15\MMan_EN.msi" progresstext="Str.ProgressText.Common" />
Last edited by ssl6 (2012-04-10 02:05:44)

Similar Messages

  • Is there anyone who can help with Pages 5 templates?

    I'm finding it frustrating to the point of despair using the newsletter template in Pages 5.  I have turned to you, at this point, because the application has simply stopped working -- cursor clicks inside text/image boxes, moving text boxes and images, etc.  Things are stuck.
    Certain Pages 5 format features work well for the template, but there are no varied pre-formatted page-templates... I cannot cut/paste from previous template work done in Pages 09... and -- most frustrating of all -- I discover that the time spent on formatting, arranging images, cutting/pasting, etc, etc often is obliterated by software that willy-nilly changes my work.  I just quit when an image I had placed at the top of the page became stuck overlaying text on the right side center of the page.  And I do know how to use the Group / Ungroup / Lock feature!
    Please: any advice for tutorial or...?  Thank you! Nate

    Pages 5 is what it is, a lobotomised version of Pages '09.
    Use Pages '09 which should be in your Applications/iWork folder.
    Peter

  • Help with multi-thread bash script

    Hi,
    I would like to simultaneously copy photo files from a memory card (in a card reader) both to internal HDD and external USB HDD, using rsync, in a *single* run (instead of running 2 rsync processes and read the same large data twice).
    It's a single core (ATOM 450) netbook, and I'm looking to minimize time and power consumption (netbook will work on internal battery during trip).
    Can anybody offer me a solution?
    Thanks

    mibadt wrote:
    Hi,
    I would like to simultaneously copy photo files from a memory card (in a card reader) both to internal HDD and external USB HDD, using rsync, in a *single* run (instead of running 2 rsync processes and read the same large data twice).
    It's a single core (ATOM 450) netbook, and I'm looking to minimize time and power consumption (netbook will work on internal battery during trip).
    Can anybody offer me a solution?
    Thanks
    Hi mibadt,
    AFAIK this is impossible. Rsync generates the deltas between the source(s) and the destination. You have two different destinations to sync to, and want rsync to somehow create a single set of deltas so that it can write it out to the two different destinations!
    What you really want to do is just copy the same files from A to B and C, in one process. Creative uses of the tee command (as briest suggested) seems to be the right trick here.
    http://en.wikipedia.org/wiki/Tee_(command)
    http://www.google.com/search?q=linux+co … stinations

  • Hey. I can not sync my iphone with my macbook air. It will not download my purchased music. Writes that there was an unknown error (-42408). Is there anyone who can help me.  Sincerely jimmi

    Hey. I can not sync my iphone with my macbook air. It will not download my purchased music. Writes that there was an unknown error (-42408). Is there anyone who can help me.
    Sincerely jimmi

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • Hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    anton93 wrote:
    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store
    Call the store & ask them!

  • Please anyone who can help me in unlocking or openlin with my iphone 4

    please anyone who can help me in unlocking or openlin with my iphone 4 its been months but i never get use it...version 5.1.1
    <Edited by Host>

    Only the carrier to which your phone is locked to can unlock it provided that the carrier offers this service. Contact your carrier for unlocking.

  • I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • How to make Internet commerce with the MacBook Pro in the program iWeb. I've made since and would like to make it possible to pick the next act with debit cards. Is there anyone who can help?

    How do I make Internet commerce with the MacBook Pro in the program iWeb. I've made the website and would like to ad a site where it possible to commerce with debit cards. Is there anyone who can help?

    Some info on this and the following two pages...
    http://www.iwebformusicians.com/Internet-Music-Sell-Distribute/Website-Buy-Page. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    A 15" mid-2009 MBP RAM specifications are: 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM.
    As has been pointed out, OWC is an excellent source for Mac compatible RAM.  Crucial is another first rate source for Mac RAM.  RAM from either vendor will work just as well as any purchased from Apple with the bonus of being less expensive and having a lifetime guarantee.
    Ciao.

  • Made a form in which colleagues can add revisions(+1 row) and amendments (1a,b,c). Once filled in, and opened again the amendments disappear. Anyone who can help?

    Hi everyone,
    See picture below. Part of a large form I made for work. Got a little problem though. Adding a new row with the button 'add a new revision' is working perfect (also when saved and reopened). But when I add amendments with the + button on the right (a,b,c), these disappear when I save and reopen the file. Anyone who can help?
    Thanks!

    Ok, I've checked your form and there are some problem in your design.
    You should use better namings for your objects!
    It makes no sense to name to tables with repeatable instances the same.
    This can cause problems with repeated objects and also requires the usage of the slow resolveNode() method.
    I've changed a few object names and so I where able to shorten many of your current scripts.
    https://files.acrobat.com/a/preview/7b4655fb-feea-4d55-896e-83317605ee19

  • Anybody can help with this SQL?

    The table is simple, only 2 columns:
    create table personpay(
    id integer primary key,
    pay number(8,2) not null);
    So the original talbe looks like this:
    ID PAY
    1 800
    2 400
    3 1200
    4 500
    5 600
    6 1900
    The requirement is to use one single query(no pl/sql) to show something lile the following, in other words, for each ID, the pay is the sum of all before itself and itself. So the query result looks like this:
    ID PAY
    1 800
    2 1200
    3 2400
    4 2900
    5 3500
    6 5400
    Again, just use one sql. No pl/sql. Anybody can help with this? I really appreciate that.
    thanks,

    Eh, people are so "analytically minded" that can't even notice a simple join?
    Counting Ordered Rows
    Let’s start with a basic counting problem. Suppose we are given a list of integers, for example:
    x
    2
    3
    4
    6
    9
    and want to enumerate all of them sequentially like this:
    x      #
    2      1
    3      2
    4      3
    6      4
    9      5
    Enumerating rows in the increasing order is the same as counting how many rows precede a given row.
    SQL enjoys success unparalleled by any rival query language. Not the last reason for such popularity might be credited to its proximity to English . Let examine the informal idea
    Enumerating rows in increasing order is counting how many rows precede a given row.
    carefully. Perhaps the most important is that we referred to the rows in the source table twice: first, to a given row, second, to a preceding row. Therefore, we need to join our number list with itself (fig 1.1).
    Cartesian Product
    Surprisingly, not many basic SQL tutorials, which are so abundant on the web today, mention Cartesian product. Cartesian product is a join operator with no join condition
    select A.*, B.* from A, B
    Figure 1.1: Cartesian product of the set A = {2,3,4,6,9} by itself. Counting all the elements x that are no greater than y produces the sequence number of y in the set A.
    Carrying over this idea into formal SQL query is straightforward. As it is our first query in this book, let’s do it step by step. The Cartesian product itself is
    select t.x x, tt.x y
    from T t, T tt
    Next, the triangle area below the main diagonal is
    select t.x x, tt.x y
    from T t, T tt
    where tt.x <= t.x
    Finally, we need only one column – t.x – which we group the previous result by and count
    select t.x, count(*) seqNum
    from T t, T tt
    where tt.x <= t.x
    group by t.x
    What if we modify the problem slightly and ask for a list of pairs where each number is coupled with its predecessor?
    x      predecessor
    2      
    3      2
    4      3
    6      4
    9      6
    Let me provide a typical mathematician’s answer, first -- it is remarkable in a certain way. Given that we already know how to number list elements successively, it might be tempted to reduce the current problem to the previous one:
    Enumerate all the numbers in the increasing order and match each sequence number seq# with predecessor seq#-1. Next!
    This attitude is, undoubtedly, the most economical way of thinking, although not necessarily producing the most efficient SQL. Therefore, let’s revisit our original approach, as illustrated on fig 1.2.
    Figure 1.2: Cartesian product of the set A = {2,3,4,6,9} by itself. The predecessor of y is the maximal number in a set of x that are less than y. There is no predecessor for y = 2.
    This translates into the following SQL query
    select t.x, max(tt.x) predecessor
    from T t, T tt
    where tt.x < t.x
    group by t.x
    Both solutions are expressed in standard SQL leveraging join and grouping with aggregation. Alternatively, instead of joining and grouping why don’t we calculate the count or max just in place as a correlated scalar subquery:
    select t.x,
    (select count(*) from T tt where tt.x <= t.x) seq#
    from T t
    group by t.x
    The subquery always returns a single value; this is why it is called scalar. The tt.x <= t.x predicate connects it to the outer query; this is why it is called correlated. Arguably, leveraging correlated scalar subqueries is one the most intuitive techniques to write SQL queries.
    How about counting rows that are not necessarily distinct? This is where our method breaks. It is challenging to distinguish duplicate rows by purely logical means, so that various less “pure” counting methods were devised. They all, however, require extending the SQL syntactically, which was the beginning of slipping along the ever increasing language complexity slope.
    Here is how analytic SQL extension counts rows
    select x, rank() over(order by x) seq# from T; -- first problem
    select x, lag() over(order by x) seq# from T; -- second problem
    Many people suggest that it’s not only more efficient, but more intuitive. The idea that “analytics rocks” can be challenged in many ways. The syntactic clarity has its cost: SQL programmer has to remember (or, at least, lookup) the list of analytic functions. The performance argument is not evident, since non-analytical queries are simpler construction from optimizer perspective. A shorter list of physical execution operators implies fewer query transformation rules, and less dramatic combinatorial explosion of the optimizer search space.
    It might even be argued that the syntax could be better. The partition by and order by clauses have similar functionality to the group by and order by clauses in the main query block. Yet one name was reused, and the other had been chosen to have a new name. Unlike other scalar expressions, which can be placed anywhere in SQL query where scalar values are accepted, the analytics clause lives in the scope of the select clause only. I have never been able to suppress an impression that analytic extension could be designed in more natural way.

  • Is there anyone who can help me to design a index page

    Hi guys
    I would like to design a index page like this site :
    http://www.hostplate.com
    Is there anyone who can help me ?

    Your example site is built with WordPress (a popular open source framework).
    You'll need to have a good working knowledge of HTML, CSS and some familiarity with PHP code & the ability to set-up a MySql database on your server.  The good news is that there is a wealth of on-line information available to you.
    HTML, CSS, PHP Tutorials - http://w3schools.com/
    Getting Started with WordPress - http://codex.wordpress.org/Getting_Started_with_WordPress
    If all this is outside your comfort zone and you're prepared to hire an experienced web developer to help you,
    feel free to contact me through my web site:  http://alt-web.com
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Newbie here needs help with features.

    I hope I'm doing this right.
    Problem #1
    With my storm when I make a call the key pad for the phone goes away. This is problematic especially when I'm checking voice mail. It is prompting me to enter my access code and i'm trying to get the key pad  to display itself. what do I do? Can I lock the key pad to display while making calls?
    Problem #2
    When entering a contact or a message that has several strings of number how do I get the Number pad to stay displayed so it does not toggle back to the alpha key pad?
    Problem #3
    Removing unused applications.How do I do it?
    Problem#4
    I am on an enterprise server how can I remove email accounts? I get two displays of the same emails comming in. They all come into a application marked messages then I get a second display with just messages for the email address showing on the application box. It is confusing and a duplication. 
    Thanks to anyone that can help me resolve these problems!

    Greetings, and welcome to the BlackBerry.com Support Forums.
    It is always helpful to receive help, to include your exact BlackBerry device model # and carrier name, so that when you have a question, that information won't need to be asked up front. Also, stating your device Operating System version is normally another common question, found on your BlackBerry at Options > About, third line down, looks like "v4.x.x.xxx"
    1. When on the call, yo'll see at the lower left a keypad symbol. Press it to bring up the keypad.
    If that doesn't appear or work, answer those above. There was one OS release way back that had a glitch of not allowing the keypad to show at all when calling.
    2. Message.. as in email? Press and hold the lower left numeric symbol on the keypad a full second the numeric keypad will lock in. Press the Alpha character at the lower left again to revert back.
    3. Most can be removed simple at Options > Advanced > Applications. Scroll to the application name and press Menu > Delete. Later OS releases will be at Options > Applications.
    4. Answer my questions above about the model and OS. The Storm1 and 2, according to the OS release vary on this.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I don't remember my keychain password, anyone that can help me? many thanks

    I don't remember my keychain password, anyone that can help me? many thanks

    What devices are you trying to connct to specifically?
    Here are the Bluetooth profiles supported by iOS devices: http://support.apple.com/kb/ht3647

  • I have installed ios7 on my iPad 4. After installation it asked me pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6.

    I have installed ios7 on my iPad 4. After installation it asked me a pass code which I have never set. After multiple attempts it is disabled. I don't have backup on my iCloud or iTunes. Is there anyone who can help to enable it or to reverse iPad to ios6. I asked Apple store & tech said to format it but I will lose all the data..!

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

Maybe you are looking for

  • How do you know when Verizon is Deleted ...

    They delete your posts....I created a new post exposing their crooked tactics and its been deleted 2x now. VERIZON REPS....I posted on 5 other forums now.   Keep deleting my posts and I will post it on 10 more sites. <Deleted per the Verizon Wireless

  • Report data is not appearing

    Hi Experts When we are running ZCO001 in this report data is not appearing in PLANT IJ01 if same report we are running forPLANT  IM01 then data is coming so please reslove me this  issue. Thanks in advance. Regads, Nagesh

  • Please send me some real time quetions in REPORTS/ ALV  REPORTS

    please anybody can send me some real time issues and quetions from REPORTS, ALV REPORTS

  • Auto adjust brightness ... can it be reversed?

    I cant remember if i had this problem with Snow Leopard. Not sure if this is a Lion issue or my new MBA either. The auto adjust brightness seems to adjust the screen brightness to low in bright light and high in low light. I would like it reversed as

  • Contacts/Calendar not synching

    I sync with Exchange and also have personal contacts/calendar. Outlook has an Exchange mail/calendar account and I have two IMAP mail accounts plus my personal contacts/calendar. I can view both calendars in Outlook 2007 (Exchange & Personal). The pr