CleanCode PowerShell Libraries v1.2.08 API: CleanCode » FileTools » Select-StringAligned
Assertion\Assertion.Tests.ps1 : 17: # the Mozilla License Version
FileTools\ConvertFrom-Text.ps1 : 17: # the Mozilla License Version
FileTools\ConvertFrom-Text.Tests.ps1 : 17: # the Mozilla License Version
FileTools\FileTree.ps1 : 17: # the Mozilla License Version
Assertion\Assertion.Tests.ps1:17:# the Mozilla License Version
FileTools\ConvertFrom-Text.ps1:17:# the Mozilla License Version
FileTools\ConvertFrom-Text.Tests.ps1:17:# the Mozilla License Version
FileTools\FileTree.ps1:17:# the Mozilla License Version
C:\Users\me\some\lengthy\pass\here\that\just\goes\on\and\on\file.cs: 132 ...you might see
.\file.cs: 132 ...or
..\..\..\and\on\file.cs: 132 ...(Note that it is rather unwieldy to go up more than three levels (..\..\..), though, so it will revert to absolute paths at that point.)
function grep($txtpat, $filepat="*") {
Get-ChildItem . -Exclude *.exe,*.obj,*.suo,*.user -Include $filepat -File -Recurse |
Select-StringAligned $txtpat -NameWidth 40 -Context 2,3
}
Get-EnhancedChildItem . -ExcludeTree .svn,bin,obj -exclude *.exe,*.obj,*.suo,*.user ...
Specifies the path to the files to be searched. Wildcards are permitted.
The default location is the local directory.
Specify files in the directory, such as "log1.txt", "*.doc", or "*.*".
If you specify only a directory, the command fails.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? true
Specifies the text to find as a regular expression.
To learn about regular expressions, see about_Regular_Expressions.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
Captures the specified number of lines before and after the line with the match.
This allows you to view the match in context.
If you enter one number as the value of this parameter, that number determines
the number of lines captured before and after the match. If you enter two numbers
as the value, the first number determines the number of lines before the match
and the second number determines the number of lines after the match.
In the default display, the actual matched lines have the search target
highlighted. Unmarked lines are the context.
Required? false
Position? named
Default value @(0)
Accept pipeline input? false
Accept wildcard characters? false
Specifies the fixed width of the file name portion of the output.
Required? false
Position? named
Default value 35
Accept pipeline input? false
Accept wildcard characters? false
Specifies the fixed width of the line number portion of the output.
Required? false
Position? named
Default value 5
Accept pipeline input? false
Accept wildcard characters? false
Makes matches case-sensitive. By default, matches are not case-sensitive.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
Returns only the first match in each input file.
By default, all matches are reported.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
Sends the output to stdout rather than the PowerShell host console.
This allows the output to be piped to another command
but also disables match highlighting as a consequence.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This function is part of the CleanCode toolbox
from http://cleancode.sourceforge.net/.
Since CleanCode 1.2.03.
SvnInfo.ps1 : 193: function Get-SvnInfo(
SvnInfo.ps1 : 239: function Match-Expression($string, $regex)
SvnInfo.ps1 : 248: function ConvertTo-HashTable()
SvnInfo.Tests.ps1 : 44: function Get-PropertyCount($results)
SvnKeywords.ps1 : 222: function Measure-SvnKeywords(
SvnKeywords.ps1 : 318: function Progress($activity)
SvnKeywords.ps1 : 324: function GetExtensionsEnabledInConfig()
SqlTools\DefaultContext.ps1 : 249: function Invoke-InferredSqlcmd()
SqlTools\Out-DataTable.ps1 : 62: function Out-DataTable
SqlTools\Out-DataTable.ps1 : 136: function Get-Type
SqlTools\Out-SqlTable.ps1 : 154: function Out-SqlTable
SqlTools\Write-DataTable.ps1 : 104: function Write-DataTable
SvnTools\SvnInfo.ps1 : 193: function Get-SvnInfo(
SvnTools\SvnInfo.ps1 : 239: function Match-Expression($string, $regex)
SvnTools\SvnInfo.ps1 : 248: function ConvertTo-HashTable()
SvnTools\SvnInfo.Tests.ps1 : 44: function Get-PropertyCount($results)
SvnTools\SvnKeywords.ps1 : 222: function Measure-SvnKeywords(
SvnTools\SvnKeywords.ps1 : 318: function Progress($activity)
SvnTools\SvnKeywords.ps1 : 324: function GetExtensionsEnabledInConfig()
Forms\WindowRestorer.cs : 341: /// <summary>
Forms\WindowRestorer.cs : 342: /// Sets the location of a sub-window relative to its base form
---
Forms\WindowRestorer.cs : 358: /// <summary>
Forms\WindowRestorer.cs : 359: /// Maximizes a form over multiple monitors.
---
IO\Comparators.cs : 48: /// <summary>
IO\Comparators.cs : 49: /// An <see cref="IComparer"/> for sorting files by ascending date.
---
IO\Comparators.cs : 69: /// <summary>
IO\Comparators.cs : 70: /// Compares two <see cref="FileSystemInfo"/> objects
---
IO\Comparators.cs : 103: /// <summary>
IO\Comparators.cs : 104: /// An <see cref="IComparer"/> for sorting files by descending date.
---
Forms\WindowRestorer.cs : 342: /// Sets the location of a sub-window relative to its base form
Forms\WindowRestorer.cs : 359: /// Maximizes a form over multiple monitors.
IO\Comparators.cs : 49: /// An <see cref="IComparer"/> for sorting files by ascending date.
IO\Comparators.cs : 70: /// Compares two <see cref="FileSystemInfo"/> objects
IO\Comparators.cs : 104: /// An <see cref="IComparer"/> for sorting files by descending date.
This documentation set was created with CleanCode's DocTreeGenerator.