What is the powershell equivalent of unix Export command?

my unix code is like this
abc=test1 ; export abc
xyz=test2 ; export xyz
i want above script is to be converted into powershell??

It varies depending on which browser you're using. In Safari, choose Preferences from the Safari menu, click on the Privacy tab, and then on Details.
(101212)

Similar Messages

  • What is the Oracle equivalent of the Microsoft Access FIRST function?

    Using: Oracle 10gR2 RAC on SUSE Linux 9 (10.2.0.3)
    In the process of converting a Microsoft Access database to Oracle, an Access query is using the FIRST function.
    What is the Oracle equivalent of the Microsoft Access FIRST function?
    In the attempt to convert, the Oracle FIRST_VALUE function was used. However, the same results was not achieved.
    Thanks,
    (BLL)
    Query:
    h2. ACCESS:
    SELECT
         TRE.GCUSNO,
         UCASE([DCUSNO]) AS DCUSNO_STD,
         *FIRST(UCASE([DNAME])) AS DNAME_STD*,
         *FIRST(UCASE([DADDR])) AS DADDR_STD*,
         *FIRST(UCASE([DCITY])) AS DCITY_STD*,
         TRE.DSTATE,
         FIRST(TRE.DZIP) AS DZIP,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT
    FROM
         TRE
    GROUP BY
         TRE.GCUSNO,
         UCASE([DCUSNO]),
         TRE.DSTATE,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT;
    h2. ORACLE:
    SELECT DISTINCT
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)) AS DCUSNO_STD,
    UPPER(TRIM(TRE.DNAME)) AS DNAME_STD,
    UPPER(TRIM(TRE.DADDR)) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DNAME)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DNAME_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DADDR)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DCITY)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DCITY_STD,
    TRE.DSTATE,
    TRE.DZIP,
    FIRST_VALUE(UPPER(TRIM(TRE.DZIP)) IGNORE NULLS) OVER (ORDER BY TRE.DZIP ASC) AS DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT
    FROM CRM.TREUP100R TRE
    GROUP BY
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)),
    TRE.DNAME,
    TRE.DADDR,
    TRE.DCITY,
    TRE.DSTATE,
    TRE.DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT;

    A slight correction to odie's post. I think you want min not max to replicate the Access first function, but see below to be sure. So:
    min(upper(trim(tre.dname))) keep (dense_rank first order by tre.gcusno) as dname_std
    user10860953 wrote:How does one ignore null values?The min and max functions will ignore nulls automatically, so if there is a null value in tre.dname, it will not be be returned, unless all of the values are null. For example:
    SQL> WITH t AS (
      2     SELECT 65 id, 'ABCD' col FROM dual UNION ALL
      3     SELECT 37, 'DEFG' FROM dual UNION ALL
      4     SELECT 65, 'DEFG' FROM dual UNION ALL
      5     SELECT 65, null FROM dual UNION ALL
      6     SELECT 70, null FROM dual UNION ALL
      7     SELECT 70, null FROM dual UNION ALL
      8     SELECT 37, 'ABC' from dual)
      9  SELECT id,
    10         MIN(col) keep (DENSE_RANK FIRST ORDER BY id) min_dname_std,
    11         MAX(col) keep (DENSE_RANK FIRST ORDER BY id) max_dname_std
    12  FROM t
    13  GROUP BY id;
            ID MIN_ MAX_
            37 ABC  DEFG
            65 ABCD DEFG
            70John

  • What is the mac equivalent to adobe acrobat?

    what is the mac equivalent to adobe acrobat?

    Adobe Acrobat. http://www.adobe.com/products/acrobatpro/tech-specs.html
    Stedman

  • OT: What's the Mac equivalent of Microsoft Paint?

    What's the Mac equivalent of Microsoft Paint?
    It used to be MacPaint, but isn't that long gone?
    Is it iLife? If so, in the specs I don't see any mention of
    basic paint functions although maybe it has them.
    Obviously I don't have a current Mac or I'd know the answer
    to this.
    Thanks.

    http://en.wikipedia.org/wiki/MacPaint
    http://en.wikipedia.org/wiki/QuickDraw
    http://www.pixelpoppin.com/dorena/
    http://sarwat.net/painting/

  • What is the mac equivalent to a right clic on a windows machine

    What is the Mac equivalent to a right click?  I installed Office for Mac 2011 on my macbook pro and I need to right click over a file from an ealier version of Office to make Office 2011 the default version of office.  This is all in preparation to install Lion (Lion won't support Office 2004 and I can't afford to lose access to these files).

    CTRL+click
    CTRL=control (in between the fn and alt/option keys).
    You can also go into System Preferences --> Trackpad and ensure "Secondary Click" is checked so that a two finger tap will act as a "right-click."

  • What is the PowerShell code to display installed programs sorted by date that they were installed?

    What is the PowerShell code to display installed programs sorted by the date that they were installed?

    Hi Larry,
    If you don't mind using Win32_Product, you can do that this way:
    Get-WmiObject Win32_Product |
    Sort InstallDate |
    Select Name,Caption,Version,Vendor,InstallDate
    EDIT: Also,
    Bill Stewart has a good script that uses the registry instead of Win32_Product. I'm not sure if it returns an installed date though.
    http://windowsitpro.com/scripting/auditing-32-bit-and-64-bit-applications-powershell
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    Command Z works for me on Lightroom - always has.
    Edit>Undo is the Menu command

  • What is the powershell command to get the user count in Active Directory

    What is the powershell command to get the user count in Active Directory

    Get-ADuser
    REF: http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/30/powertip-single-line-powershell-command-to-list-all-users-in-an-ou.aspx
    This post is provided AS IS with no warranties or guarantees, and confers no rights.
    ~~~
    Questo post non fornisce garanzie e non conferisce diritti

  • What is the WinRT equivalent of MediaPlayerLauncher

    WP8 has MediaPlayerLauncher, so what is the WinRT equivalent of MediaPlayerLauncher for WP8.1?
    Hong

    Thanks, Rob. That is what I was looking for. This is a universal apps project. I tested this with the Windows version and it launched the default video player as expected.
    Hong

  • What is the Mac equivalent of the command "ctrl shift  I"  for a PC

    HI
    what is the Mac equivalent of the command "ctrl+shift + I"  for a PC to get to the cookies and delete them

    It varies depending on which browser you're using. In Safari, choose Preferences from the Safari menu, click on the Privacy tab, and then on Details.
    (101212)

  • HT2486 What is the Apple equivalent of an address label L7160 ? (21 PER SHEET)

    What is the Apple equivalent of an address label sheet L7160 (21 PER SHEET) ?

    Many thanks for your reply but my problem is that I have sheets of labels already  ........... however on the Apple address Book there seems to be no equivalent of a 3 column x 7rows sheet.
    Any ideas?
    Alan

  • What is the best way to call SSH commands through Java technologies

    What is the best way to call SSH commands through Java technologies

    I don't think you can specify the password at the prompt using ssh. Plink has the -pw command option for passwords. What I did was except ssh to ask me and write the password programmatically through the outputStream I obtained from my Process object. I looked for "password: ", and then wrote the password with a trailing newline.
    Both plink and ssh will also ask if you trust the host if it is the first time you are connecting to it. So before just writing the password, check if the program wants verification from you: normally supplying "y" or "n". This should only have to happen the first time the client connects. It looks like thisPLINK:
    The server's host key is not cached in the registry. You
    have no guarantee that the server is the computer you
    think it is.
    The server's key fingerprint is:
    1024 f8:43:61:4c:a2:5b:77:be:5b:a7:bb:1f:f7:79:b3:b7
    If you trust this host, enter "y" to add the key to
    PuTTY's cache and carry on connecting.
    If you want to carry on connecting just once, without
    adding the key to the cache, enter "n".
    If you do not trust this host, press Return to abandon the
    connection.
    Store key in cache? (y/n)
    SSH:
    The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
    RSA key fingerprint is e1:02:13:c8:52:c2:23:41:9b:5b:58:2c:18:e6:59:af.
    Are you sure you want to continue connecting (yes/no)?What I did was read character by character from the inputStream until I found things of interest ... like "password: ". You only need to search for this in your method which will launch the ssh or plink Process. Once you have verifyed yourself, you can just pass commands to the Process, which is an ssh connection.
    My suggestion is to read() each byte from the Process's inputStream and write it to stdout. Look and see what you need to be looking for so you can interactive with the program correctly. You can't use readLine here becuase when the ssh asks for the password it does not print a newline. I do know for sure, that ssh will simply print, "passowrd: ". Plink will print this as well if the -pw option is not supplied.

  • 24p from a DVX 100 - What are the best ways to Import / Export

    Hi Everyone,
    A friend of mine did some shooting on his DVX100 on 24p. He then captured them to avi files. I have the files on my hard drive. What is the best settings when importing these files and what should my settings be for exporting. I want to eventually watch it, when I'm done editing, on a big screen tv.

    I have the same problem. I have a bunch of footage captured on Premiere Pro that I have imported into FCP 6. Other than having to modify the timecode to match the original timecode I haven't had a problem editing with the footage. It looks good to me as far as quality goes.
    I have yet to output to DVD and watch it on a real TV yet, but if it looks this good in the canvas I'm hoping it looks good on TV.

  • What is the mac equivalent of the windows run command

    I am a mac virgin, always used windows based pc's. I am finding it a bit of a struggle. What is the equivalent run command on a mac?

    To launch a program, double-click its icon or CONTROL-click it and select open. In the Terminal.app (CLI program), it's open <path to application>.
    Since you're a newcomer to the Mac, peruse Switching from Windows to Mac OS X and Basic Tutorials on using a Mac
    G4 450 MP Gigabit   Mac OS X (10.4.9)  

  • What all the register requires in EOU (Export oriented unit)

    Dear Gurus,
                       Can any body tell me that what all the registers that are maintained in EOU (Export oriented unit) . For Example Sales Register ... And so on can anybody list me out the names .
    Regards
    Shankar

    Dear Shankar
    Following are the registers maintained in EOU plants which has been collected from my friend who is working in EOU plant.
    1.     Cenvat credit & Service tax (PIII & EOU)
    2.     Proof of export & Rebate
    3.     Daily invoicing (PIII & EOU)
    4.     DTA sale updation from SAP as a monthly statement with invoice#, product, scrap etc
    5.     DTA application
    6.     ER1 / ER6
    7.     ER2 / ER6
    8.     ER4 - annual
    9.     ER5 - annual
    10.     ER7
    11.     Service tax return
    12.     CT3 request
    13.     Updation of CT register
    14.     Daily Bond register updation
    15.     Daily receipt posting
    16.     Daily rewarehousing cert along with Inspector signature
    17.     Rewarehousing certifcate for returned material
    18.     Old Daily rewarehousing cert along with Inspector signature upto 31.12.2007
    19.     Department queries - PIII
    20.     Department queries - EOU
    21.     Statutory formalities -
    22.     MEPZ application for new products, rejection, norms fixation, subcontract, DTA entitlement, free sample, re-export, debonding
    23.     J1ID updation
    24.     Cenvat reconciliation for both PIII and EOU
    25.     Recredit for past, present and future
    26.     Updating of central excise cases
    27.     QPR & APR , Quarterly CST refund claim, input drawback claim
    28.     Handling of internal / cera audit
    thanks
    G. Lakshmipathi

Maybe you are looking for