mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
Manual push Wed Jul 12 12:48:10 AM CEST 2023
This commit is contained in:
@ -9,3 +9,5 @@ title: Unix/Shell
|
||||
|
||||
* [[Input Field Separators|https://en.wikipedia.org/wiki/Input_Field_Separators]]
|
||||
* [[Split string with symbol|https://stackoverflow.com/a/10638555]]
|
||||
* [[$PWD vs. pwd regarding portability|https://stackoverflow.com/questions/10795014/pwd-vs-pwd-regarding-portability]] --- `$(pwd)` has issues with paths with newline chars, `$PWD` is fine but can be wrongly reset by badly-made programs; all appear to be available on all good shells.
|
||||
* [[How to find the last field using 'cut'|https://stackoverflow.com/questions/22727107/how-to-find-the-last-field-using-cut]] --- `echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev`
|
||||
|
Reference in New Issue
Block a user