Results 1 - 10 of about 10 results out of about 91095 pages. (0.04 seconds)
- ParsingLs . . . 1 match
- = Why you shouldn't parse the output of ls(1) = <<TableOfContents>> The `ls(1)` command is pretty good at showing you the attributes of a single file (at least in some cases), bu
- ShellHallOfShame/Page2 . . . 1 match
- ...paces? Nothing good, to be sure. And it would be so easy to fix that.
They also [[ParsingLs|parse the output of ls]], here:
{{{
for SCRIPT in $(
(
for i in $DT_CON...
- DontReadLinesWithFor . . . 1 match
- ...))
}}}
or
{{{
printf ... $(printf ...)
}}}
And numerous other common issues such as ParsingLs, [[BashFAQ/050|commands in strings]], and many [[Quotes|quoting]] problems. ''DontRe...
- CategoryShell . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
These pages discuss issues associated with the Unix command line shells, especially bash, but a...
- BashProgramming/03 . . . 1 match
- ...tion over filenames should be done by letting bash expand a [[glob]], '''never''' by ParsingLs. If you need to iterate recursively, you can use the globstar option and a glob con...
- BashPitfalls . . . 1 match
- ...eplace certain characters in a filename with "?", or simply not print them at all. [[ParsingLs|Never try to parse the output of ls]]. `ls` is just plain unnecessary. It's an exter...
- BashGuide/Practices . . . 1 match
- ...ing Along These Lines''':
* '''`ls -l | awk '{ print $8 }'`'''
. '''DON'T EVER [[ParsingLs|parse the output]] of `ls`!''' The `ls` command's output cannot be trusted for a nu...
- BashFAQ/087 . . . 1 match
- ...ses, there will be some other way to accomplish your [[XyProblem|real goal]]. You [[ParsingLs|don't want to parse ls's output]] if there's any possible way to avoid doing so.
Ma...
- BashFAQ/004 . . . 1 match
- ...re stuck with `-prune`. This is left as an exercise for the reader.
Never try to [[ParsingLs|parse ls output]]. Even `ls -A` solutions can break (e.g. on HP-UX, if you are root...
- BashFAQ/003 . . . 1 match
- ...filenames and operate on the results using e.g. `awk`. As usual, the `ls` approach [[ParsingLs|cannot be made robust]] and should never be used in scripts due in part to the possi...