Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

27
tldr/ifs Normal file
View File

@@ -0,0 +1,27 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# IFS
> IFS (Internal Field Separator) is a special environment variable that defines the delimiter used for word splitting in Unix shells.
> The default value of IFS is a space, tab, and newline. The three characters serve as delimiters.
> More information: <https://www.gnu.org/software/bash/manual/html_node/Word-Splitting.html>.
- View the current IFS value:
`echo "$IFS"`
- Change the IFS value:
`IFS="{{:}}"`
- Reset IFS to default:
`IFS=$'
'`
- Temporarily change the IFS value in a subshell:
`(IFS="{{:}}"; echo "{{one:two:three}}")`