getting grep

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm stuck with Windows 10 because I'm stuck with Atmel Studio 7.

I want grep.

Is this a good place to get it:

http://gnuwin32.sourceforge.net/... ?

Will it mess up the stuff I can already get the the AS7 command line?

Windows has not given me joy.

I have a hard time imagining that anything I do with it will go right.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

are you sure there isn't already a grep in with the AS7 GCC stuff ... ?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
are you sure there isn't already a grep in with the AS7 GCC stuff ... ?
It has avr-nm,

but not grep or avr-grep (would have been surprised).

I think AS7 just has toolchain stuff.

 

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@awneil: Alas, no grep in the toolchain stuff that Atmel/Microchip distributes.

 

skeeve wrote:
Is this a good place to get it: http://gnuwin32.sourceforge.net/... ?

That looks like a really old build (2009).. Might not matter - grep should be a very stable piece of code, and what it needs from the Windows API should also be stable.

 

skeeve wrote:
Will it mess up the stuff I can already get the the AS7 command line?

Not likely. Download the ZIP and have a look in it. It's more or less three executables (grep, egrep, fgrep), documentation, source code and some locale stuff. I bet you could pull just grep out of that and run it.

 

Of-course, if you deide to actually use it long-term then you'd place it in a directory that is in the PATH, but just for testing you could drop it into the folder you're in when needing to run it.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

Last Edited: Mon. Dec 11, 2017 - 02:44 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I wouldn't expect it to be avr-anything - as it is entirely unrelated to that.

 

But I just checked, and I don't have it there either.

 

If you have ny other Eclipse- and/or GCC-based stuff, it might be worth checking there...

 

(I have it from another manufacturer's Eclipse-based IDE)

 

Just do a windows search for "grep" on your PC ...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I bought a Windows laptop because I had to have it to run Atmel Studio.

I've also added git and sourcetree.

That is it.

JohanEkdahl wrote:
That looks like a really old build (2009).. Might not matter - grep should be a very stable piece of code, and what it needs from the Windows API should also be stable.
Oops.  Hadn't noticed.

That means it predates Windows 10.

IIRC WinAVR also predates Windows 10.

Has it been successfully installed on Windows 10?

My recollection is that some people are still using it,

much to the annoyance of some people on avrfreaks.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Mon. Dec 11, 2017 - 02:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

skeeve wrote:
I'm stuck with Windows 10 because I'm stuck with Atmel Studio 7.

I want grep.

WSL

Microsoft

Microsoft Docs

Learn about the Windows Subsystem for Linux

07/11/2016

https://docs.microsoft.com/en-us/windows/wsl/about

...

 

You can:

...

2. Run common command-line utilities such as grep, sed, awk, etc.

...

SUSE and Ubuntu per https://blogs.msdn.microsoft.com/commandline/2017/07/

 

Edit: distributions

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Mon. Dec 11, 2017 - 03:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
Is this a good place to get it:
That's exactly where I (indirectly) got mine.

 

Having said that previously I just used to rely on an installation of WinAVR20100110 which not only installs the old avr-gcc 4.3.3 but also comes with a whole package of the gnuwin32 tools.

 

More recently I have just used GetGnuWin32-0.6.3.exe from:

 

https://sourceforge.net/projects...

 

That goes direct to gnuwin32 but instead of pulling "one at a time". It gets a whole group of things in one pull.