PowerShell: Want to get the length of the string in output

Hi All,
I am typing this but it is not working. Does anyone know what I could be doing wrong.
The command I wrote is:
                     GCI -file  | foreach {$_.name} | sort-object length | format-table name, length
But it is not working. I am expecting a name of the file and length of the string like 8 characters etc. my file is called mystery so it should have 7 as its output of the name, length.
Thank-you
SQL 75

Get-ChildItem supports both  -File and -Directory.
Help will help:
https://technet.microsoft.com/library/hh847897(v=wps.630).aspx
Read the first couple of parameters to see.
   GCI -file  | sort-object length | format-table name, length | ft -auto
Seems to be a rasher of bad answers to day.  YOu were just extracting the name property then trying to sort on a property that doesn't exist.
Do the sort first then select the properties.
it helps to test answers before posting.  I know because I get bit by posting without thinking to often.  I have to remember to think first.
¯\_(ツ)_/¯

Similar Messages

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • My iTunes says I owe $5.25 for songs that I have already paid for and am not going to pay for again but I want to get some apps from the store and now there's a hold on my account. Who do I talk to get the hold taken off

    I explained it most in my question but I am getting charged double for songs that I have already paid for and am not going to pay for twice because that is messed up. But I want to get some apps from the store and it wont let me because of $5.25. Who can I talk to about resolving this issue?

    You're right, it would have been covered under warranty. But because of the user damage, chances are there's a 200-something dollar fee . If you explain to them that it had a defect previously, they might replace it for you at no charge. **MIGHT**. But they would have to believe that it had a defect previously.

  • The battery for my macbook pro 13 says "service battery".  Now I want to get a replacement but the reviews for it are horrible! Does anybody have any suggestions?

    The battery for my macbook pro 13 says "service battery".  Now I want to get a replacement but the reviews for it are horrible! Does anybody have any suggestions? I don't want to spend 130 dollars on something I'm going to have to replace in less than a year (which is what normally I been reading)  I do design work and I take my mac everywhere.  Having to always look for a plug or having to be constantly plugged in doesn't sound ideal to me.  Please help me. what should I do???

    Why does it matter if it a scam????? I'll let you figure that out by yourself.  If I'm going to replace it, why should I be contempt with a battery that I have to replace within months (as stated by some people in the comments). The issue here is not if I should or not replace it OBVIOUSLY I'm going to have to before it starts going crazy.  The underlying issue is why is the replacement battery for a lack of better words " a bit crap."  It comes with a 3 month guarantee?? Is that a joke?!??!?! Some people complained it malfunction after only 8- 9 months? I'm sorry but as an Apple fan I think it's absolutely rubbish. I know there is no magic cure I'm just hoping someone shines the light on how crappy this replacement is.

  • I have changed operator and also changed IOS and did a back up of my old phone in Itunes so i would keep all my contacts etc. Now when i want to get everything back in the phone, Itunes asks me for a password, which i do not have. How to bypass this?

    I have changed operator and also changed IOS and did a back up of my old phone in Itunes so i would keep all my contacts etc. Now when i want to get everything back in the phone, Itunes asks me for a password, which i do not have since i did not enter any password when i did the back up. Is there any way I can bypass this password request? Otherwise i have lost all my contacts etc.
    Greatful for help.

    Contacts are designed to be synced to a supported application on the computer or a cloud service like Gmail, iCloud, or an Exchange server.
    Have you failed to use the device as designed?

  • HT1296 I HAVE A TOUCH 4.3. MY COMPUYET DIED AND NOW HAVE A NEW LAP TOP. I HAD SYNCED PHOTOS FORM THE COMPUTER IN THE TOUCH THAT APPEAR IN FOLDERS. THEY WERE NOT TAKEN WITH THE TOUCH. NOW HAVE A NEW COMPUTER AND WANT TO GET THESE PHOTOS FROM THE IPOD TO NE

    I HAVE A TOUCH 4.3. MY COMPUTER DIED AND NOW HAVE A NEW LAP TOP. I HAD SYNCED PHOTOS FROM THE COMPUTER TO THE TOUCH THAT APPEAR IN FOLDERS. THEY WERE NOT ORIGINALLY TAKEN WITH THE TOUCH. NOW HAVE A NEW COMPUTER AND WANT TO GET THESE PHOTOS FROM THE IPOD TO NEW PC OTHERWISE ARE LOST. MY LAPTOP IN WINDOWS 7

    To get synced photos from an iPod to a computer you need a third-party program like TouchCopy or PhoneView.

  • How do i make a still image (photo) fit the length of the music? I record music and want to put the tracks to a video file with a still image of my business logo in the background. Any help?

    How do I make a still image (photo) fit the length of the music? I record music and want to convert the tracks to a video file with a still image of my business logo in the background. On windows movie maker you could just select "fit to music" but this program isnt as easy to figure out! Any help?

    Double-click on the still image in the project timeline to open the Inspector. In the Inspector, adjust the duration by typing in a new duration to match the length of your music. I think the limit for a still image is 10 minutes. If you need more than this, simply drag the image into the timeline again then adjust its duration. The two images will play seamlessly (no gap will be visible).
    See this iMovie Help topic:
    http://help.apple.com/imovie/#mov3a883915
    You can achieve more precision when entering durations by changing a preference in the menu item iMovie Preferences. Check (tick) the preference for Show Time As HH:MM:SS:frames. This will enable you to enter the duration of stills down to the frame level, rather than full seconds (NTSC is 30 frames per second; PAL is 25 fps). When entering times, type a colon between each time segment, such as 2:50:15, which represents 2 minutes 50 seconds and 15 frames. For 5 seconds 20 frames you would enter 5:20 and so forth.
    Note that the music will only run to the length of the video in the timeline (in your case, the still images). So, after increasing the stills duration you will need to drag the end of the music track as far as required. The stills can be dragged inwards to reduce the duration if necessary.
    John
    Message was edited by: John Cogdell - added Note

  • I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    You can try a rest:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - If that does work, contact iTunes and request a redownload.  You can ask for a refund though.

  • On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    Keynote is programmed to execute all of the effects in a build sequence before it will move to the next slide.
    If you want tobe able to move to the next slide at any time in a sequence of builds, you will need to set all of the builds on that slide to:  "on click". You will then need to execute each build by pressing the space bar or click the left mouse button for each object.

  • I wanted to get this app from the app store but it wouldn't load the app after typing it in the search box

    Hey apple or who ever is going to answer the question I'm about to give,
         Anyway, my question Why isn't my app store working? Is there a glitch in the IOS 7 or something. But let me get into further detail about my situation. I wanted to get this app from the app store. When I click on the app everything is fine at first, but then i click on the "search button" and I type out the name of the app.And usually the name of the app would pop up to what it appears be a list of the names of each app, but that never happened. Then, I clicked "enter" or "search" and it wouldn't load after hours and hours. And then I decided to go to the settings and see whats up with the app. I scoll down and click on the "ITunes & App Store" with an arrow pointing right. Once I clicked it, it freezes. But I haven't updated my phone (its IOS 7 but theres an update for IOS 7.1 or something like that)
    Regards,
    Veronica M.

    Veronica ...
    Reset the device then try the App Store.
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.
    When you can, yes, there's an update available.
    Tap Settings > General > Software Update

  • My computer has a 1.3 GHz. I want to get a game but the minimum requirement is 1.4 GHz. Can I still play this game without problems.

    My computer has a 1.3 GHz. I want to get a game but the minimum requirment is 1.4 GHz. Can I still get this game and play it without any problems that will prohibit me from being able to play it. I would also like to get a game that has a 1.7 GHz requirment and be able to get this game and play it without any problems that will prohibit me from being able to play it.

    What do you expect us (Apple users) to tell you?  Especially since you are not telling us which specific MacBook Air you have - as some of the recent ones have TurboBoost.
    But even putting that aside, if the game maker takes the time and trouble to tell you a required speed, and you do not meet that speed, then obviously you should expect the game to function less than perfectly.  If you are considering a 1.7GHz required game on a machine with 65% of that performance, you should feel lucky if the game runs at all, even with miserable performance.
    The game maker took the trouble to lay out the specs.  If you don't meet them, expect inferior, if any, performance.

  • I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help

    I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help.  I have spent several hours trying to figure it out on my own but have not been successful.  It seems like an easy task.  Can anyone help?

    dewin1or wrote:
    I want to extend the length of the song by repeating the first 28 measures.
    split the region at the 28th measure
    http://www.bulletsandbones.com/GB/GBFAQ.html#split
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    then select only the first region and option-drag it to the end of the song

  • I want to get rid of all the songs off my iPod....

    i want to get rid of all the songs off my iPod but when i press un-sync library, there is about 60 song that won't be erased. i've tried manually erasing them too and it won't earse them. how can i fix this? thankyou

    Backup and then restore.
    tt2

  • TS3989 My iphone was stolen and I want to get my pictures from the device back.

    My iphone was stolen and I want to get my pictures from the device back. I have iCloud but when i logged into it there was no icon for my pictures so I guess they are not on there for some reason. How can i get my photos back either on iCloud or wherever?

    If your music and books all came from iTunes you can download it again without charge. If you had maintained an iCloud backup of your phone you can restore that backup and get all of your content back.

  • I disabled my iPod and it says connect to iTunes I tried that but it doesn't do anything and  I want to get it back to the lock screen ??

    I disabled my iPod and it says connect to iTunes I tried that but it doesn't do anything and I want to get it back to the lock screen ??

    iOS: Forgotten passcode or device disabled after entering wrong ...

  • The length of the recording and exporting truncated

    Hi there.
    It's my first venture into GarageBand. I have just a few questions.
    First, how can I tell the length of my recording without having to listen to the entire session? Dragging the indicator bar in the window to move it along takes a very long time, is there a quicker way to do this?
    Second, I have been exporting my files to iTunes to burn CD's. I am seeing that the file get's shortened in the process. It's not just a small clip, but rather edits out over 15 minutes on one file. Any thoughts? I called Apple and they knew nothing.

    To determine the length:
    - Switch the meter that shows bars and beats to minutes and seconds (by clicking on the clock icon).
    - Scroll to the end of the song.
    - Click into the timeline's ruler, and the cursor will be taken there, the meter showing the minutes and seconds.
    As for the export: Do you see the little purple triangle in the timeline, pointing to the left? That's your End of Song marker. Does it sit at the right position? If not, move it there and try exporting again. And since this little ******* is playing tricks sometimes, a more exact way of exporting is using the circle function and setting the circle section exactly from the beginning to the end of what you want to export.
    Oh, and by the way: How long is your recording? If it exceeds 999 bars, then GB will only export until bar 999, although your whole recording is still there.
    Come back and tell us what you found out!

Maybe you are looking for

  • Dropped My Laptop - Which Tests Should I Run To Assure It's Fine?

    Unfortunately I placed my one + a half year old 15" MacBook Pro laptop  on a new tilted notebook cooler (that has no grip), & sat them both  on my computer chair while in use. To my recollection I only had the  YouTube homepage open without any video

  • I can't transfer any movies to my iPod touch

    I rented one movie and bought another one. I read all the FAQ's and how-to's on how to move them to your iPod, however when i try to do that, i get an error message. When i go into my iPod and click the 'movies' tab, and then click the 'move' button

  • Do not display microsd photo on xperia library.

    Hello to all I just have adquired a xperia Z2 and my problem is I have lots of photos in my microsd card(which comes form my old xperia Z1) but it does not display on xperia Z2 library.I have to install other app as  .apk as quickpic to view. Any sol

  • Adobe Reader X Plug-In

    I am using Windows 7 Home Premium with Internet Explorer 9.0.4 and I am unable to open pdf in the browser.   I have tried going to the manage add-ons but it is not listed in any of the fields.  I really need to be able to open pdf's in the browser fo

  • Analysis Services started and then stopped, Event ID: 0xC1210000

    I just installed SQL Server 2005 Developer Edition and SP1 and SP2. I cannot start Analysis Services.  The message box states: The SQL Server Analysis Services (MSSQLSERVER) service on Local Computer started and then stopped.     I looked in the log