Sort the CSV with sort Unix in Applescript

I'm trying to sort a CSV field 5 using unix-like, but nothing is happening, where I'm going wrong? Any help gratefully received!

the value filePath to quoted form of POSIX path of "/ users/bear/Documents/Test File.csv".

the shell script "T","k5"& path & "o" & filePath sort.

Don't know what happened to the script, should be:

the specified filePath value form of POSIX path of "/ users/bear/Documents/Test File.csv".

the shell script "sort t","k5"& filePath & "o" & filePath.

Tags: Mac OS & System Software

Similar Questions

  • How to delimit the csv with ' | '?

    Hi guys,.

    I have a csv file that contains two fields with data with «,» So basically the csv unable to separate data with «,»

    Could you please suggest me for this workaround.

    Thanks in advance

    You can set this in the properties of the file layout Segment.

    Two things must be in place.

    1. make sure that the layout of your file Format is defined in the csv format on your definition of provision of file properties (use tab).

    2. on all properties available to file Segment (in my example it's PERSON) the field delimiter to what you want it to be. Note: You need to double click on your area to get to Segment properties.

  • Portege Z930: The update of the BIOS with LINUX/UNIX OS

    Hello.

    I manage a COMPUTER company, and some of our facilities are portege z930.

    We use Linux as main OS, and in order to use all the disk space, we erased the Windows partition.

    How can I update the BIOS of a Linux operating system? I asked a support company official technichal, and they told me that they use a special live linux CD managed by Toshiba.

    I don't know if I can get this cd somehow live. If this isn't the case, I would like to know how to upgrade our Bios without having to reinstall the Windows operating system.

    Thanks in advance!

    As far as I know on the download page of the BIOS that Toshiba offers the Windows version only. Of way General Linux is not supported.
    Try to contact the nearest Toshiba service provider and ask for help. Maybe they can get this special CD.

    By the way: why you didn t prepared machine (BIOS update) before starting to install Linux?

  • V21 Firefox cannot find the files if file *.htm used "style windows" path slashes to the java scripts (on Unix, hosting with apache)

    Hello. I find a strange behavior of Firefox v21. If the 'windows' path used *.htm file slashes to the java scripts (on Unix, hosting with apache). Firefox says 404, but other browsers (such as Opera, Chrome, IE10) works properly with this.

    You should use slashes in links so that they work properly in Firefox, otherwise Firefox will escape them that 5% C as you can see if you would them hover in the case of a real link (this is obviously not possible in this case).

  • Replicate the Volumes CSV with the virtual machines in Hyper-V by ASM?

    Hello

    We are migrating to VMware, Hyper-v. VMware reproduced us some across the Equallogic HIT VMFS volumes.

    On Hyper-V, I can replicate VMs in Hyper-V, but they may not have comments ISCSI.

    We want comments ISCSI features, I'm trying to reproduce the CSV volumes.

    Is this supported? Is there a document that describes the configuration and usage?

    Hello

    With Windows 2012 and 2012R2, there is a problem that currently prevents the HIT / replica ME volumes CSV.   Until it's resolved, you need to plan the replication of CSV volumes via the user interface of group.  I think this is mentioned in the HIT / ME v4.7.x documentation.

    Kind regards

  • I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    Hi gurrus and LucD

    I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    The script should search for information in a multiple Vcenter servers and multiple clusters and list all the VMs name, status (two powers on or off) with type card NETWORK Type E1000 only no other.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp |)) Where {Get-NetworkAdapter - VM $_______ | where {$_.}} Type - eq "e1000"}})) {}

    $report += $vm. Select @{N = "VM"; E={$_. Name}},

    @{N = 'vCenter'; E={$_. Uid.Split('@') [1]. "Split(':') [0]}},"

    @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • You are looking for assistance on the use of CSV with InDesign files for merges data...

    Hello

    Please forgive me if this has been discussed in this forum already. If so, please point me to this discussion.

    What I'm trying to do, it's a data merge InDesign with a (CSV) file delimited by commas. I created the CSV file by using the command "SaveAs CSV" with Office Excel 2013. The problem I have is with records that contain multiple lines in the same area. After reviewing the merged InDesign document, I noticed that the results are inaccurate for the rest of this record. When it gets to the record following some fields are filled with the remaining records of the previous record.

    I'm sorry if I'm not explaining this very well, but the results are strange and I hope others have similar results and can offer a solution.

    Thank you

    Greg

    You can't have line breaks in a cell. The solution is to use a code for the break, and then run find/replace after the merger to change the code to break you.

  • How to download the Csv file with column headers

    Hi all

    This is pavan, using Apex version 4.2.3


    I am trying to download the csv file I followed this link , and I'm able to download excel with headers, when I try to download with headers of this error "'ORA-01858: a non-digit character was found here where was waiting for a digital" I searched in google but could not find the right solution, "


    can anyone help on this please.

    Thanks in advance,


    Kind regards

    Pavan

    This article is 6 years old.

    You should study the solutions that are available for APEX 4.2: data loader or the 'Excel2Collection' plugin (which also manages the CSV files).

    Data Loader

    It is a wizard that generates an Assistant for your application.

    Excel2Collection

    You will use the Excel2Collection (in a single process) to convert the BLOB in a Collection

    Then, in a 2nd address), you just do a "INSERT...". SELECT statement.  Add ' where seq_id > 1 "for files with a header.

    MK

    PS - Use the "EXECUTE IMMEDIATE" article is not necessary.

  • Change the VM with custom attributes defined in a CSV file

    Hi all

    I'm doing something that I think should be simple (but this is the first time I used powercli and am not a good code writer), but I find it hard to tell.

    I created 2 custom attributes (owner and owner of the SSG system) in vCenter for my virtual machines.  I have a list of vm names csv and their associates "owners".  I would use powercli to read the csv file and connect to the VC server and the 'owners' of entry in the appropriate field.

    I borrowed com code from various places on the internet and these forums but I can't seem to make it all work.  I managed at least to read the information in the csv file and is displayed on the screen of my laptop.  What I can't do is get 3 columns in the csv file to be recognized as variables (unless there is some default variables I don't know) I can put in the game-Annotation lines.

    The code I have is:

    # Input range, includes all IBD VM names that are registered.
    $data = import-Csv "C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"-Header ('Hostname', 'Owner', 'SSG owner')
    # $data | Get-Member
    Write-Output $data
    # Loop over all the VMS in vCenter
    ForEach ($row in $data)
    {
    # Create variables for the current virtual and its 'Contact' and 'Description' computer that are custom attribute fields.  Also create a $note string to use Set-VM-Description
    $hostname = get-VM-name $vmname;
    # $contact = $vm | Get-Annotation CustomAttribute - user;
    # $description = $vm | Get-Annotation - CustomAttribute Description;
    # $note = $contact.name + ":'t" + $contact.value + "' not n" + $description.name + ":'t" + $description.value;
    Set Annotation - entity $hostname - CustomAttribute "Business system owner" - value $SSG_owner
    Set Annotation - entity $hostname - CustomAttribute "SSG system owner" - value $system_owner
    # Set - VM - VM $vm - $note Description - confirm: $false;
    }

    The result, I get on my screen is:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts >.\setvmownership.ps1

    Owner of the company that owns SSG host name

    --------                                              --------------                                       ---------

    ABPPROXY-00-AH

    ACE-01-AH hung Laallmmi hung Laallmmi

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    The CSV file looks like this (but continues for about 500 VMS):

    I go with the option import-csv because that said something that I read in my troubleshooting efforts would empty columns and error I received and that import-csv correctly would intrepret in empty columns.

    hostname, business_owner, system_owner,

    ABPPROXY-00-AH,

    ACE-01-AH, James Laallmmi, James Laallmmi,

    acrodev-00-ah, tflessa, Bruce Hastings,.

    ACT1DDB00AH, Bill Mancini, Mike Bruni,

    ACT1TDB00AH, Bill Mancini, Mike Bruni,

    What should I do to be able to get this script to work? I don't know that it is related to messages "argument is null." that we see in the output.

    Thank you

    Dan

    Hello, dscottimw-

    You were on the right track.  There were a couple of things to change to make it work as you want:

    1. either remove the "-header" part of the Import-Csv line or delete the actual header of the CSV itself - these are elements in conflict (the "-Header" param names of the columns in the CSV and assumes that the CSV file has already no header row)
    2. you need to access the properties of the $row variable in the ForEach loop - not only call the names of the CSV column headers (this is why you may receive errors on things 'null' - whether you use variables that have no value)

    Try this:

    # Input array, includes all VM names from DCI that are registered.$arrVMsInfo = Import-Csv "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"#Write-Output $data
    
    ## loop through all VMs listed in the CSV, setting custom attrib values for eachForEach ($row in $arrVMsInfo) {    ## get the VM for this row    $vmThisOne = Get-VM -Name $row.hostname    Set-Annotation -Entity $vmThisOne -CustomAttribute "Business System Owner" -Value $row.business_owner    Set-Annotation -Entity $vmThisOne -CustomAttribute "SSG System Owner" -Value $row.system_owner} ## end foreach
    

    And, to give it a shot without actually play the game on annotations, to make sure things go as you like, you could add a - WhatIf to each line in Set-Annotation in the ForEach loop.

    Which works better for you?

  • Export data from the database Table in the CSV file with OWB mapping

    Hello

    is it possible to export data from a database table in a CSV with an owb mapping. I think that it should be possible, but I didn't yet. Then someone can give me some tips how to handle this? Someone has a good article on the internet or a book where such a problem is described.

    Thank you

    Greetings Daniel

    Hi Daniel,.

    But how do I set the variable data file names in the mapping?

    Look at this article on blog OWB
    http://blogs.Oracle.com/warehousebuilder/2007/07/dynamically_generating_target.html

    Kind regards
    Oleg

  • How to map the csv (not columns) cells in the columns of table, import with sql loader

    Given «example.csv» csv file

    I want to load the data in:

    the C7 cell in column X

    cell D8 in column Y

    cell F7 in column Z

    Oracle table "exampletable" and so on. The csv file has not ordered rows and columns, so I can't just load the csv file into a new table itself. So what I'm asking is how to map to the columns in table cells load this file into Oracle (XE). Can someone point me to a tutorial?

    I know it's quite elementary, please let me know if I am sous-prescrit anything in the question.

    I ended up doing in Excel, through a very laborious process that will probably be repeated by others.

    What a pity that there is no functionality in Oracle for this kind of data import more flexible. Analysts of data often throw himself spreadsheets that look like this (or 485 of them) who must enter data one way or another.

  • How to write in the csv file - what's wrong with that?

    Hi all

    I created a view that makes all kinds of calculations, now I need to write the output in the csv file. How can I do this through a procedure? Sorry I've never had to create a csv file before and this is my first time.


    Thank you!

    Published by: user5737516 on November 18, 2009 09:47

    See:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1992907061984
    (points to several other links)
    and/or
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html

  • What is the problem with kernel_task?

    Hello everyone,

    What is the problem with kernel_task?

    I explan: Macbook Pro early 2011 LION OS up to date.

    I bought 8 GB on China supplier, CRUCIAL...

    Well, I got a lot of kernel Panic. Usually, he is involved material, taken on my RAM, back is the original, so still have in the kernel_task to 300% CPU monitoring followed up to 500%...

    Well, I went back to a clean install, a manufacturing one, with nothing.

    Wish I 'd' diagnosis of the equipment, never went on, test it on safe mode, disable all extensions, then nothing:

    Sometimes the kernel_task crazy sometimes not...

    Good read a lot on the internet but nothing has worked... I went to the Apple store in DIJON, they do not have diag any hardware problem, and all my App are approved Apple.

    Used to play the eve online thought, therefore, the graphic chipset pourrait was damaged, so when it's too 'hot' the mac gets crazy... but I expected crazy restarts and that sort of thing.

    I bought a manual, there is no french support to the opening of Apple, but found nothing about my question.

    So what?

    I bought something conivient on Support and friability so today he's dead?

    What should do?

    If you still get the panic of the core, thanks to post separate 2 or 3 of the most recent as answers on this.

    Reports of kernel panic: "/ Library/Logs/DiagnosticReports".

    http://support.Apple.com/kb/ht2546>

    http://support.Apple.com/en-us/HT200553>

    The panic report should have "panic" in the name of the file.

    Kernel panics tend to come from 2 sources

    • Material:
      • 3rd party RAM is the most common.  Replace or return the original is usually the solution.  Crucial and MacSales.com were 2 of the most reliable sellers for the initial quality and guest without question of replacement.
      • Broken USB cables or USB devices have turned up as the 2nd most likely material number.  Usually remove all USB devices, or replace the keyboard and USB mouse to see if it's one of those existing.
      • There are a few Macs with graphics chips that have failed.  I don't know that they exist, but do not know what model Mac had these chips.
    • Software
      • antivirus protection.  It is the number 1 most panicked related software cause.  More OS X does not need antivirus, because it has its own built-in protections http://www.thesafemac.com/mmg-builtin/>.
      • Other core 3rd party extensions are a distant 2nd.
      • NOTE: not all 3rd party kernel extensions are causing problems, but when there is a kernel panic, it's the first thing to look at.

    If run kernel_task is often caused by core 3rd party extensions.  It can be caused by an application program, but then the Applications-> Utilities-> Activity Monitor show "As" an application that consumes a lot of CPU, disk IO and network IO in collaboration with the kernel_task using lots of CPU.  If there is no application burns the CPU at the same time, so it is almost always a 3rd special part of the kernel that was originally the use excessive CPU kernel_task.

    Start in safe mode is usually a test to see if 3rd party extensions are part of the case.  But in safe mode is not how you run your system, because it also loads less advanced graphics drivers and other components.  Safe mode is very conservative, but it's a great way to see if the 3rd party software is at fault and have started when 3rd party software panic the system at boot.

    The contributors to the forum long strongly warn against getting 3rd party anti-virus, cleaners Mac and additions increasing.  This class of 3rd party additions have shown time and time again to really harm performance, remove things they shouldn't and cause a kernel panic.  Especially right after an OS X update to a new version.

  • Current stage of the display with API

    Hello

    I'm using LabVIEW 2009 AP1, and I call a sequence of TestStand 4.2 by using the API. I do not use the operator interface, because this isn't a graphical interface, but a module which runs just a sequence.

    I have reproduced essentially calls listed here .NET:

    http://forums.NI.com/T5/NI-TestStand/calling-user-created-TestStand-sequence-from-net/m-p/703125?Que...

    Only with the engine of the activeX LabVIEW, properties and methods. So I have references to the TS engine, movie file, the process model and execution.

    What I need is access to the current name of the step. I don't need the whole sequence Viewer, essentially just to access the 'Step.Name' property at any specific time. I guess it would be accessible through the reference of the performance, but I am unable to track him down. I suspect it will get a reference to a subproperty of the execution and then acting on it somehow, but I can't get there from here.

    Any ideas?

    Thank you

    Tim

    Hi Tim,.

    Only two other solutions:

    If you have a handle to the execution of your

    you could use Execution.GetThread () Note: you collate property Execution.NumThreads how they are present.

    lets hope there is only one!

    Access the thread and get a context with Thread.GetSequenceContext

    Now you should be able to access the name with SequenceContext.Step.Name

    Another solution to this sort of thing might find:

    http://forums.NI.com/T5/NI-TestStand/is-is-possible-to-retrieve-a-sequence-context-through-a-new/m-p...

    related to this: http://forums.ni.com/t5/NI-TestStand/Marshalling-the-IEngine-object/m-p/666852

    I hope this also helps

    Jürgen

  • No sound from the tv with hdmi w3 connection

    I have a standard micro HDMI to connect my w3 to tv.  When a movie plays on the w3, I can see the video on the Tablet and the tv, but only the Tablet has its.  Is this normal?   I checked that the tv properly with other hdmi sources works but have no way to test the brand new microphone cable or w3 drivers.

    I was unable to locate a compatible driver on intel.com.

    However, I tried the w3 with a different TV and everything worked as expected: even with only a 'driver' Intel ESS Audio Device (WDM) available.  Passage of the tablet on television was automatic.  I did plug in and turn on the tablet in front of the TV and everything worked.

    I tried the same procedure with the original tv and the results were good video but no sound from the TV.  The sound remained with the tablet.

    I hae 2 TVs and 2 blueray players.  I swapped every combination of TV and player and everything works well.  Since the Tablet works well with at least one TV, the hdmi cable is ok.  My conclusion is that the current configuration of the Tablet works with some TVs and others not, and until I can find a better driver I'll just have to live with it.  I wanted to be able to watch videos with the Tablet when I traveled and will just have to wait until I get whenever I go to see if it works.  Not very desirable but it's like that.

    Thanks for your suggestions and help.

    Problem solved (sorta).

Maybe you are looking for

  • OK, here's a list for you fix, please.

    1.A better save as homepage!2 when I press the use current pages I mean my pages not the page setting. :))3.A way around unsecured site or what ever.itof my choice which site to enter, not yours.More visible 4.A. Turning to reset the browser in adava

  • Why my Firefox works in "stealth mode"?

    Several times when I close on a web page and I'm going to restart, I get a Message telling me "Firefox is already underway and I have to shut down before I could start another web page, but I have already liquidated and there is no web page Firefox i

  • pass code for id touch not recognized

    New iPad Pro, spent by the program installation, entered code pass for Touch ID or I pass wrong initially to key in the code or pass unrecognized code. disabled iPad. What is the next step to activate? Grateful for the help. Cheers, Chris

  • Is there a way to hide several updates?

    In Vista and upward, it is possible to tick/check/select several updates. What's the point if you can't actually choose to hide unwanted language packs 34 etc.?

  • What does "PAGE_FAULT_IN_NON_PAGED_AREA" usually mean when associated with a BSOD?

    The question is in the title:That the following sentence usually means, when associated with a BSOD?"Failure of Page in the nonpaged area".Since the very little I know of free software, this would mean that a pointer memory was bad, it refers to a lo