@@ -128,8 +128,8 @@ write to a file:
128128Append to a file:
129129
130130```
131- >echo This\ is\ a\ line >> file.txt
132- >echo This\ is\ a\ second\ line >> file.txt
131+ > echo This\ is\ a\ line >> file.txt
132+ > echo This\ is\ a\ second\ line >> file.txt
133133```
134134
135135For Autocompletion, just always press <kbd >TAB</kbd >. You will be surprised how many things fish knows.
@@ -184,7 +184,7 @@ You can use `&&` for two commands that depend on each other.
184184If you rather want to split a * single* command across multiple lines, use a backslash
185185
186186```
187- whoami \ # press Enter here
187+ > whoami \ # press Enter here
188188 --version
189189```
190190
@@ -302,10 +302,10 @@ set myvar "The files" (ls -a) " are in the directory $PWD"
302302# Passing the output of a command to another command that only accepts files can
303303# be done using process substitution.
304304# In bash, you use <(command):
305- # diff <(ls dir1 ) <(ls dir2 )
305+ # diff <(sort file1 ) <(sort file2 )
306306
307307# fish uses (command | psub) for that:
308- diff (ls dir1 | psub) (ls dir2 | psub)
308+ diff (sort file1 | psub) (sort file2 | psub)
309309
310310# There's also if, else if, else
311311if grep -q fish /etc/shells
0 commit comments