Skip to content

Commit

Permalink
Remove unneeded cat into grep - grep doesn't need cat
Browse files Browse the repository at this point in the history
  • Loading branch information
twilco committed May 19, 2019
1 parent 7c3cbda commit 9c4840e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2019-04-27-riscv-from-scratch-2.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ $ dtc -I dtb -O dts -o riscv64-virt.dts riscv64-virt.dtb
This gives us a file called `riscv64-virt.dts`, which has lots of interesting information about `virt` such as the number of available CPU cores, the memory location of various peripherals such as the UART, and the memory location of the onboard memory (RAM). We want our stack to live inside this memory, so let's `grep` for it:

{% highlight bash %}
$ cat riscv64-virt.dst | grep 'memory' -A 3
$ grep memory riscv64-virt.dst -A 3
memory@80000000 {
device_type = "memory";
reg = <0x00 0x80000000 0x00 0x8000000>;
Expand Down

0 comments on commit 9c4840e

Please sign in to comment.