• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

less command

#1
In reference to "less" program...

Here's how to use the PowerShell Community Extension less command from TCC.

First, you need PowerShell, and the PowerShell Community Extensions, installed on your system.

To install the PowerShell Community Extensions, from the PowerShell prompt;
Code:
Find-Package pscx | Install-Package -Force
From TCC, create an alias for less;
Code:
alias less=`powershell -command less`
You can use less in a pipe, or give a filename as a paramater;
Code:
type test.txt | less
less test.txt
For help on less;
Code:
less --help
Joe
 
Top Bottom