PowerShell text editing

I did a quick search but can't find anything on this, I do not see a server then if this section in the wrong place I'll move it.

Essentially what I want to do is see and edit text via Powershell files.

During remote access via Powershell on a server, I can make most of the things I want, stop/start services, scheduled tasks, etc.. The output of some text files reading is kind of easy with Get-Content some_text_file.txt/log | Select - last 50 /-50 first and then read the output.

The problem is that some files that I want to read through hundreds of lines long and I can't search through the output. Now, I know that I can open the file using the unc path in windows explorer with \\servername\c$\folder\where\fileis\located\some_text_file.txt but I think it would be easier to access and navigate the file in Powershell, rather than having as many open windows.

This has been possible in * nix for a long time and I'm not a full blown type emacs/vim to clone. Something small and light as nano would be perfect, just enough to open the file and scroll it wisely with the possibility to search and edit sections, a version of Powershell Notepad would be ace.

As a system administrator I have often multiple pssessions open on my servers and having the ability to natively without having to install any additional software, specially for our servers that are running the server core would really benefit.

Hello

No, we don't server issues.

But there is a Microsoft Community dedicated to it. Unfortunately, you can't move Threads between Forums within this community.

Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

See you soon.

Tags: Windows

Similar Questions

  • How to prevent the Text Edit launch when I start my Mac? I am on OS 10.11.6

    Text Edit starts automatically when I turn on my Mac Book Pro. It brings up a plist file. I'm on OS 10.11.6. Does anyone have a suggestion?

    This is part of all things "Let's turn Mac OS in an iPad ' Apple tried to do from Lion, 10.7.x. In other words, applications start where you finally left on each start or restart. Many users hated. Apple then placed functions in Mountain Lion and before killing this behavior.

    (1) of the Apple at the top left of the screen, choose restart or shut down. Any one. Clear the check box, and then click Cancel.

    The OS will definitely remember this choice.

    (2) open system preferences. On the general tab, enable the checkboxes to request to keep the changes when closing documentsand Close windows when you exit an application.

    This should stop not only TextEdit, but any application to open on starts or restarts. Unless you have them in your login items to your user account. Then they'll start in any case each time. Preferences system again. Click users and groups. Click your left user account name, and then click the login items tab on the right. If there are applications in the list that you don't want to run each time your Mac starts or restarts, highlight each one and click on the button "-" to remove it.

  • Please I want to know can I use rich text editing like table, font... color in Thunderbird

    Please I want to know can I use rich text editing like table, font... color in Thunderbird

    Yes, you simply dial your email in HTML mode, which supports Thunderbird. If you search online you will find many, many guides on this topic.

    See you soon,.
    Dave

  • I want to sort a file of text editing

    Use: Mac OS X El Captan (10.11.4)

    Office of the Registrar the County gave me the voter information on some 200 000 voters in our County.  The information is on two discs. One is in the form of text editing; the other is in CSV format.  Unfortunately, when I open the CSV disc, which is sortable on any field, it includes only info registration for 65 538 voters, is less than 1/3 of the voters.

    When I reconnected the CSV disc to the person who gave the information and explained that the CSV disk only displays information for 65 538 voters, she put the drive in his PC, to confirm that she had copied a completeness of the CSV file on the disk. 200 000 voters appeared on his PC!

    I have concluded that the CSV file doesn't have to be compatible with the Apple software.  The instructions of the Office of the Registrar explain how to convert the file changing text in the CSV file, using the Windows software.  Unfortunately, I have no Windows software installed on my iMac.  The Office of the Registrar also stated that it had taken 10 hours to create the CSV file.

    Is it possible for me to convert the file changing text in a Numbers spreadsheet sortable?

    FWIW, I normally do not work with spreadsheets, but test a few large .csv files, numbers seem to have a limit of 64 k lines so convert the file of text editing will not help. On the other hand, LibreOffice seems to have more than 1 million more lines, so you should be able to sort your files in OL.

    Someone else may have more information.

  • Change the characters of the language in the old text/edit the document

    I have an old 60-page text/edit document that I need to use.  It was written in Lithuanian, but now when I open it the Lith print. Letter are random symbols.  Is there a way I can easily change everything that the original characters from Lith were?

    When it was originally typed in, it was seized by the Lithuanians characters on an old computer, using pages, I think...

    What do you use to open it. If it was written in the Pages it doesn't open in the Pages?

  • Text editing opens to the page Finder

    MacBook Pro with OS X using 10.11.4, I find that when "Edit Text" is opened from the dock icon, a "Finder" page is implemented!

    If I then click on 'New Document' (lower-left), a normal empty "Text Edit" window will appear.

    Why is the window of the "Finder"?  How to fix?

    Why open TextEdit from docking station opens a Finder window?

    What happens if TextEdit is activated in iCloud drive.

    To open in a document window TextEdit empty when you click the icon in the Dock of TextEdit:

    System Preferences > iCloud Drive > Options > Documents

    Uncheck "TextEdit".

    Click on 'done '.

    Now, TextEdit will open to a new empty document.

    I keep as a default and choose 'New Document' in the window that opens.

  • Prefs in user.js for the Mozilla rich text editing has stopped working

    Prefs in user.js for the Mozilla rich text editing has stopped working. He worked, then stopped. you had to do system restore. user.js file replaced, does not work

    This has happened

    Don't know how many times

    solved with this

    https://addons.Mozilla.org/en-us/Firefox/addon/852/

  • Cannot save styles with Text Edit ver 1.10

    I read the book Missing Manual and also help online Text Edit topics, but I can't do styles work for me in editing text.

    When I click on the Styles button on the rule and select 'Show Styles' nothing happens. Same thing under Format > police > Styles menu. I have no way to save or set a style.

    Any ideas?

    I use a Mac Book Pro with Yosemite and Text Edit 1.10.

    Please, back up all data before proceeding.

    Triple-click anywhere in the line below on this page to select this option:

    ~/Library/Containers/com.apple.TextEdit

    A right click or Ctrl-click on the line and select

    Services ▹ reveal in Finder (or just to reveal)

    of the contextual menu.*, a file must open with a selected item. Quit the application runs. Move selected item to the trash. Restart the application and test.

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • Text editing opens on wrong monitor

    So I upgraded to elcappitan and, like him, except Textedit now insists on opening on the 2nd monitor. Everything opens on the main monitor textedit just has a preference for my 2nd monitor - that I didn't turn that often

    This question should probably be in a textedit forum, but I can't find a...

    So to be clear, display preferences are precisely - defined everything opens on the correct monitor - just a text editing likes to hide in a different place

    Any ideas?

    Check the setting recommended by water red in this topic: full screen

  • Photosmart HP 6520: Photosmart 6520 unable to analyze text editable

    I'm unable to analyze text editable my Photosmart HP 6520 to my pc HP Envy Phoenix running Windows 8.1 64bits.

    It is possible to scan the document to the pc in pdf format.

    It is possible to convert the PDF into a Word document, but the text is not editable.

    Is anyone able to help me with this please?

    Note: I am able to convert pdf files sent to me by e-mail in word with editable text documents.

    Hello @petermfwlet,

    Welcome to the Forums of HP Support!

    I understand that you want to scan files editable text your Photosmart HP 6520 e-all-in-one printer to your Windows 7 computer. Because it is a Photosmart printer text editable reading iris (OCR) software does not come with this printer model. In order to have the editable text supported HP options offers you will need to use a model of the Officejet printer. By saying this, you may be able to use third-party software of the seller to scan documents for editable text. You can also analyze your HP Photosmart camera PDF files and use a third-party vendor software to convert the PDF file to a Word document.

    Please click here for instructions on how to scan a PDF document via the HP scanning software. Once the PDF file is saved on your computer, you will use the third-party software to convert the file.

    I can not recommend a third party software to convert or analysis files to editable text. However, I did a search on the internet and found a list of programs that can suite your needs:

    PDF to Word Converter

    The editable text - Windows scanning software

    Please let me know if the information provided has been helpful. I wish you good luck going forward with this!

  • HP Officejet 6500 E709n wireless. Will not print Word documents or text edit.

    I'm connected wireless with an iMac Snow Leopard and MacAir 10.8.2, Mountain Lion 10.6.8.  I have used this system for a year, had no problems printing to date.  I am able to print a .jpg attachment but nothing else, we try to print (from computers) is printed.  I tried to print a Word document as well from a text edit page with no luck.  Two days ago, I was able to print from a Word document - nothing has been changed on the computer or the printer.  I am naïve.

    How is the printer connected?  Would it be a network, what router?  You've restarted the router by pulling its plug momentarily?  You've restarted the printer?

  • Text editable and readable after scanning...

    Hello

    Found the site for "HP Deskjet full feature software and drivers" for my 3050 all-in-in-one, had problems downloading and not all downloaded successfully... Uninstall and try again... smile... the question I have is with the scanning of text... will I need to download other software OCR in addition to software clearly mentioned in order to scan a text editable and readable? any help would be appreciated...

    Larry Wöller

    Hello

    Printers only more expensive software on the CD or download the software itself because can be expensive. Please try the following free software;

    http://www.MakeUseOf.com/tag/top-5-free-OCR-software-tools-to-convert-your-images-into-text-NB/

    Kind regards.

  • I have acrobat 9 pro and I do not see the text edit tool, or in any case to change the spelling of the words, I have version 9.0.0

    I have acrobat 9 pro and I see no way to change the spelling of the text.  I know the search for instructions to do this it is assumed to be a right pane, but I have no right pane and I don't see how to get one to appear.  Thanks for any help.

    In Acrobat 9 the tool is called the "Text editor" tool It is included in the "Advanced editing" toolbar, so just with the right button of the toolbar area and select it from the list of available tools. Or you can select: Tools > advanced editing > text editing tool

  • Fonts / text edit problem in photoshop CS6

    Hello

    I have a problem with strange text edition in Photoshop CS6 running on the Mavericks.

    Whenever I use the text tool in PS, write a sentence, mark it and change something like the color, the size of font etc., the marked text disappears.

    I have to "undo" the last step and the modified text appears again.

    Every time!

    I have an own CS6 installed with no plugins and none other than the installed system fonts.

    All about a new Mac Pro with OS X 10.9.5

    Clues? Thank you.

    You have the latest updates of photoshop cs6?

    You can use help > updates in photoshop cs6 to check if there is any.

    In addition, if you are going to help > System Info from within photoshop cs6, you can see the Version of Photoshop in the upper line.

    You should be on version 13.0.6

    See turn off Dictation solves the problem.

    Go to Preferences system---> dictation and speech---> select the OFF radio button.

  • Problem with the tool of markup for text editing in Adobe Pro XI on a Mac automatically remove the first character

    When I use the markup of text editing tool, I pointed out a word/phrase/sentence and then start typing in the replacement, the first letter is automatically highlighted and then removed when the second letter is typed. Thus, each word/phrase/sentence I type is missing in his first letter. Very annoying and has just started happening recently.

    Someone else encountered this?

    No idea how to solve this problem?

    I use a Mac.

    Hi LPerkins,

    The issue that you are facing is known for us and a Bug was registered for the same.

    The engineering team works to its difficulty. This only happens on Mac and on Windows.

    Kind regards

    Rave

Maybe you are looking for

  • 29 FF havoc... How to fix or return?

    Once more, an update to FF just drives me crazy and wasting my time. So, I'm updating to FF 29.1 (when I never learn?) My favorite - theme is no longer compatible.Forecast Fox - is no longer compatible. I see no 'refresh' or recharge them touch. Wher

  • What should I back up whenever I install an app from iTunes?

    I am curious and annoyed.  If I connect my phone to my windows computer and start iTunes and to install an application that I have already downloaded on iTunes on the phone - why should the phone back up first?  Is it possible to keep backup and inst

  • An extension has changed my got 'search engine '.

    Normally if I waive the search bar and type in a word like dog, I'm going to be busy IEEE.org or results from google for dog. Some add on interferes with this redirection of queries to somoto.com. I disabled addons, and the question is still persiste

  • Satellite Pro A60: hinges are broken - need new parts

    I have a satellite Pro A60, unfortunately no longer under warranty. One of the screws which fix the hinges to the frame has sheared which means the hinge must be replaced. When I removed the top cover (it covers a bunch of inches at the back of the l

  • Maximum RAM for Pavilion HPE h9 - 1215t

    I have a Pavilion HPE h9 - 1215t (Core i7-3770 3.4 G 8 M 77 w CPU;) Card mother Formosa IPMMB-FM).  the system currently has 16 GB of ram (4 x 4).  Upgrades of what I can do and what dimm configuration?  Is 32 GB maximum for this system?  For example