Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replace string of file on command line

Featured Replies

Hi,

I want to replace an expression in a file with another expression on a command line.

Example

prog.exe <string1> <string2> <filename>

Does anyone know such a tool?

  • Author

Thanks,

Gsar looks more easy, but I couldn't get it to work with search strings with a comma, but that is what I need.

It doesn't work for a string containing a comma and text, like 0,win. I tried to put it in quotes, but no luck.

Then I replaced it with ASCII or Hex-Code it just displays one match, but there are much more.

Does anybody know a solution for that or another tool?

Yes use Munge.exe. Its part of the NT4 Resource Kit. You can search for it using google, I used it a few days ago for a batch file and it works very well.

Just create a txt file containing the current string and the required string separated by a space. You can sounded the string with " " as it works with any quoted text so your expression should work.

MUNGE strings.txt -l -t file.txt

strings.txt contains your search strings and file.txt is the file you want to edit

  • Author

Thanks At0mic,

that's the most easiest and Windows-like tool.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.