public class GroovyPosixCommands
extends Object
Groovy-aware implementations of groovysh POSIX-style commands.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
cat(Context context, Object[] argv)Writes the supplied files, variables, or standard input to the current output stream. |
|
public static void |
grep(Context context, Object[] argv)Searches the selected inputs for lines matching the supplied pattern. |
|
public static void |
head(Context context, Object[] argv)Prints the beginning of each requested input. |
|
public static void |
less(Context context, String[] argv)Displays the requested inputs in the less viewer, or streams them when not interactive. |
|
public static void |
ls(Context context, Object[] argv)Lists directory entries using the current groovysh working directory. |
|
public static void |
sort(Context context, Object[] argv)Sorts the requested inputs and writes the ordered lines to the current output. |
|
public static void |
tail(Context context, Object[] argv)Prints the end of each requested input. |
|
public static void |
wc(Context context, Object[] argv)Counts lines, words, characters, or bytes for the selected inputs. |
Writes the supplied files, variables, or standard input to the current output stream.
context - command execution contextargv - command name and argumentsSearches the selected inputs for lines matching the supplied pattern.
context - command execution contextargv - command name and argumentsPrints the beginning of each requested input.
context - command execution contextargv - command name and argumentsDisplays the requested inputs in the less viewer, or streams them when not interactive.
context - command execution contextargv - command name and argumentsLists directory entries using the current groovysh working directory.
context - command execution contextargv - command name and argumentsSorts the requested inputs and writes the ordered lines to the current output.
context - command execution contextargv - command name and argumentsPrints the end of each requested input.
context - command execution contextargv - command name and arguments