Re: WOT: Scripting Question[Scanned]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-07-27 at 20:15 +0200, Alexander Dalloz wrote:
> Chris Bradford schrieb:
> 
> > Unfortunately in my environment I still have a few windows (yes i 
> > know!) servers, and on one of them I am trying to make a script that 
> > will interpret a text file called 'disc.txt' that looks like this:
> >
> >                   jo tynan                 15  Disc    
> > wdica                                 KIML                      1  
> > Disc    wdica                                 
> > sararyan                  6  Disc    rdpwd              
> > *There ARE spaces at the beginning of each line for some reason.*
> >
> > The file is generated every hour by the command:
> >
> > qwinsta /SERVER:servername | find "Disc" > disc.txt
> 
> I wouldn't have expected "find" in this command. Wouldn't that be "grep"?

I think the script is running on Windows, where "find" is a close as it
gets to grep, and isn't the Unix-like "find" command.

Paul.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux