Sprezzatech: Expert UNIX/HPC consulting and custom development.

Shell

From blackwiki
(Redirected from Bash)
Jump to: navigation, search

IFS

To set IFS to newline, use IFS=$'\n'. This allows find output containing horizontal whitespace to be picked up and used in e.g. for loop.

  • If you can use the output with xargs, then just use find's -print0 predicate and xargs's -0 option.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Google AdSense