3

on Mac machine, I am looking for a specific string in any non-text using coreservicesd command tool. If I am searching for the word delegate for example (which I know the word is there), I type:

$ strings /my/path/to/my/file.cs | grep Delegate

The window freezes. it keeps on and on without a message telling me if it is successful or not.

It has been running for over half an hour and the file is only 435 bytes!

I've tried other files with other searches like .dll files, .app files and .exe... same fate!

user1019042
  • 2,428
  • 9
  • 43
  • 85
  • What happens if you just run `strings` without pipe into `grep`? – Drux Jul 06 '14 at 21:25
  • Try `strings -a yourfile` – Mark Setchell Jul 06 '14 at 21:26
  • `strings` is typically used with **binary** files; is `file.cs` an object or binary file? – l'L'l Jul 07 '14 at 02:59
  • I have also tried it with various different files: .app, .dll, .exe... same behavior: hanging and nothing is happening! There must be something wrong with it, not installed correctly or damaged... is there an alternative? – user1019042 Jul 07 '14 at 09:33
  • 7 years later, and I am reproducing this on the mac too. Hmm. `which strings` gives `/usr/bin/strings`. File shows a Mach universal binary. – Danny Staple Apr 26 '22 at 19:28

0 Answers0