shell - sheldonhull.com #155
Replies: 7 comments
-
sudo !! (execute last command, but with sudo in front of it ) |
Beta Was this translation helpful? Give feedback.
-
pushd / popd : very useful for moving between multiple directories |
Beta Was this translation helpful? Give feedback.
-
on the conditional pipeline stanza: && executes the next command if the previous one exited cleanly as in: make clean && make all && make install |
Beta Was this translation helpful? Give feedback.
-
use of 'env' : the downside is that it adds considerable processing time to find the interpreter. In a stable environment, the interpreter should always be in the right place. Obviously this doesn't apply if developing for multiple platforms. |
Beta Was this translation helpful? Give feedback.
-
@markfazakerley that's great info. I recently worked with Fyi using powershell 7 those operators are available so more similar to bash now but with object pipelines. Give it a shot. Just don't expect that to be Gotta update with some new snippets from you and from my recent work in loops/curl. Found the loop and logical evaluation syntax very strange and full of mystery 😄. |
Beta Was this translation helpful? Give feedback.
-
Equivalent in powershell Push-Location and Pop-Location which can be aliased the same. |
Beta Was this translation helpful? Give feedback.
-
@markfazakerley i updated shell reference with some of your snippets. Thanks for those. I also updated a new doc for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
shell - sheldonhull.com
A personal dev blog
https://www.sheldonhull.com/docs/shell/
Beta Was this translation helpful? Give feedback.
All reactions