LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   UBUNTU --- Grep command help needed (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-grep-command-help-needed-4175520786/)

Sfenerin 10-01-2014 09:18 PM

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:http://support2.microsoft.com/kb/2008373 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).

evo2 10-01-2014 10:00 PM

Hi,

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.

Code:

df -h
mount
lsscsi

Assuming it has mounted it somewhere, eg at /mnt I think the equivalent command you need is as follows:
Code:

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.

HTH,

Evo2.


All times are GMT -5. The time now is 11:14 PM.