Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-01-2014, 09:18 PM   #1
LQ Newbie
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
UBUNTU --- Grep command help needed

So, I happen to run a dual boot of Windows 7 and Ubuntu (mostly for fixing windows problems) and I noticed windows 10 is coming out and downloaded the WIP version of it. I installed it alright but it fails on boot with error code 0x0000359. You may be thinking "This has nothing to do with linux, GTFO n00b" Well, I am using ubuntu to follow the instructions in this: and I need to translate the findstr /i /c:"iastor" %windir%/inf/oem*.inf into the linux equivalent. I happened to find that Grep is the replacement for the findstr and I cannot translate it myself.

Basically, I need to be able to find references to iastor in files inside of a directory, additionally, I need to be able to reference a source outside of my linux installation, eg; my windows installation.

In short, translation of the above findstr command into linux terminal, and targetting of my C:/windows/inf directory.

I am mostly n00bs when it comes to linux.

Additionally I run ubuntu 12.04, and windows 10(used to be 7).
Old 10-01-2014, 10:00 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391

you need to mount your "C:" drive somewhere. Perhaps Ubuntu has already done it automatically. We can probably find out if you post the output of the following "diagnostic" commands.

df -h
Assuming it has mounted it somewhere, eg at /mnt I think the equivalent command you need is as follows:
grep -i iastor /mnt/windows/inf/oem*.inf
Note that I'm not a windows user and not familiar with "findstr", so I read the documentation (hint!).

If it is not mounted (or you don't know where) the output of the "diagnostic" commands should provide the information needed to move forward.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grep output help needed pinga123 Linux - Newbie 8 05-23-2011 12:10 PM
Grep help needed ZAMO Linux - General 2 03-03-2009 04:37 PM
Help needed in grep for .tar.gz ZAMO Linux - General 2 07-28-2008 11:45 AM
grep option needed ziox Linux - General 7 01-04-2005 11:02 PM
Grep help needed Dirt Linux - Newbie 4 08-03-2003 05:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration