Thank you Hal...I will let you know how it goes...This should be enought to bootstrap myself and get used to the system.
On Jul 13, 9:43 am, Hal Rottenberg <halr9...[ at ]gmail.com> wrote:
[Quoted Text] > Awwww man I had a really good reply which got lost. Grrrrrrr... ok, > here we go again. > > On Jul 13, 8:44 am, Larry <lpo...[ at ]gmail.com> wrote: > > > That said, if someone could lemme know what the Powershell equivalent > > of the following commands I would switch over and begin using it. > > > 1) find . > > get-childitem, aliases: dir, ls > > The -r (or -recurse) will give you find behavior. The thing you have > to get used to though is that this isn't returning a list of files > like ls. Powershell is object-oriented. Get-childitem returns an > array of objects which can be sent down the pipeline. > > > 2) find . -name "*.cs" > > ls *.cs -r > > The current working directory is assumed. You could type "ls . *.cs - > r" if it would make you feel better. :) > > > 3) grep -i mytext `find . -name "*.sql"` > > new-alias grep select-string > ls *.sql -r | grep mytext > > See how the pipeline works here? This is one of the core benefits of > Powershell. > > > 4) less (with searching via "/" and tail mode (Waiting for Data...) > > via "F" > > Find and install the Powershell Community Extensions (PSCX), it > includes less. I don't remember the answer to 'tail -f' but it's been > asked before. Try searching the newsgroups.
|