-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
674f179
commit 8f4f910
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
index.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
index.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# awk | ||
|
||
GitAlias has some aliases that use the command `awk` to process data. GitAlias expects to use a current version of GNU `awk` such as version 5.1 or greater. This command is also known as `gawk`. | ||
|
||
➤ https://www.gnu.org/software/gawk/ | ||
|
||
Do you have GNU `awk` installed? | ||
|
||
```sh | ||
awk --version | ||
``` | ||
|
||
The output should start with "GNU" then a version number such as: | ||
|
||
```sh | ||
GNU Awk 5.1.1 | ||
``` | ||
|
||
If the output doesn't start with "GNU", or shows a version number that looks like a long date, such as... | ||
|
||
```sh | ||
awk version 20200816 | ||
``` | ||
|
||
...then some of the GitAlias data processing commands might not work for you. | ||
|
||
|
||
|
||
## Install awk | ||
|
||
Install `awk` via macOS and `brew` package manager: | ||
|
||
```sh | ||
brew install awk | ||
``` | ||
|
||
Install `awk` via Ubuntu and `apt` package manager: | ||
|
||
```sh | ||
apt-get install awk | ||
``` | ||
|
||
Install `awk` via Fedora and `yum` package manager: | ||
|
||
```sh | ||
yum install awk | ||
``` | ||
|
||
For other ways to install GNU awk, see the GNU awk page. | ||
|
||
➤ https://www.gnu.org/software/gawk/ | ||
|
||
|
||
## Troubleshooting | ||
|
||
|
||
### Troubleshooting "awk: calling undefined function systime source line number 1" | ||
|
||
This error message means that your command `awk` is unable to run the function `systime`. | ||
|
||
This error is likely happening because your system command `awk` is older, or is not fully compatible with GNU `awk`. | ||
|
||
To solve this, install current GNU `awk` as described above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Help | ||
|
||
Help for GitAlias is available via our GitHub link: | ||
|
||
➤ https://www.github.com/gitlias/gitlias | ||
|
||
We welcome feedback, or issue reports, or pull requests. | ||
|
||
Help with specific areas: | ||
|
||
* (awk)[awk/] |