Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Aug 23, 2018
1 parent 0fb4135 commit b40138f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/blog/_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,7 @@
"published": true
},
"cli-improved": {
"title": "CLI-improved",
"title": "CLI: improved",
"date": "2018-08-23 18:11:05",
"modified": "2017-12-08 13:35:13",
"tags": ["web"],
Expand Down
8 changes: 4 additions & 4 deletions public/blog/cli-improved.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CLI improved
# CLI: improved

I'm not sure many web developers can get away without visiting the command line. As for me, I've been using the command line since 1997, first at university when I felt both super cool l33t-hacker and simultaneously utterly out of my depth.

Expand Down Expand Up @@ -179,13 +179,13 @@ alias help='tldr'

I personally flitter between `ack` and `ag` without really remembering which I prefer (that's to say they're both very good and very similar!). I tend to default to `ack` only because it rolls of my fingers a little easier. Plus, `ack` comes with the mega `ack --bar` argument (I'll let you experiment)!

Both `ack` and `ag` will (by default) use a regular expression to search, and extremely to my work, I can specify the file _types_ using flags like `--js` or `--html` (though here `ag` includes more files in the js filter than `ack`).
Both `ack` and `ag` will (by default) use a regular expression to search, and extremely pertinent to my work, I can specify the file types to search within using flags like `--js` or `--html` (though here `ag` includes more files in the js filter than `ack`).

Both tools also support the usual `grep` options, like `-B` and `-A` for before and after context in the grep.

![ack in action](/images/cli-improved/ack.png "Sample ack output with grep args")

Since `ack` doesn't come with markdown support (and I write a lot in markdown), I've also got this customisation in my `~/.ackrc` file:
Since `ack` doesn't come with markdown support (and I write a lot in markdown), I've got this customisation in my `~/.ackrc` file:

```text
--type-set=md=.md,.mkd,.markdown
Expand All @@ -200,7 +200,7 @@ Since `ack` doesn't come with markdown support (and I write a lot in markdown),

I'm a massive fanboy of [jq](https://stedolan.github.io/jq). At first I struggled with the syntax, but I've since come around to the query language and use `jq` on a near daily basis (whereas before I'd either drop into node, use grep or use a tool called [json](http://trentm.com/json/) which is very basic in comparison).

I've even in the process of writing a jq tutorial series (2,500 words and counting) and have published a [web tool](https://jqterm.com) and a native mac app (yet to be released).
I've even started the process of writing a jq tutorial series (2,500 words and counting) and have published a [web tool](https://jqterm.com) and a native mac app (yet to be released).

`jq` allows me to pass in JSON and transform the source very easily so that the JSON result fits my requirements. One such example allows me to update all my node dependencies in one command (broken into multiple lines for readability):

Expand Down

0 comments on commit b40138f

Please sign in to comment.