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

13.8k - rev: 36 (current) last modified: 2023-08-12 13:05:09

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...

25.9k - rev: 2 (current) last modified: 2015-01-28 21:57:27

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...

3.3k - rev: 5 (current) last modified: 2016-12-07 22:21:19

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...

0.6k - rev: 2 (current) last modified: 2009-03-11 17:10:59

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...

17.0k - rev: 8 (current) last modified: 2019-03-14 20:33:06

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...

86.2k - rev: 572 (current) last modified: 2024-04-04 23:09:24

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...

30.2k - rev: 61 (current) last modified: 2023-06-12 00:57:43

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...

3.9k - rev: 33 (current) last modified: 2015-09-28 19:14:40

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...

8.4k - rev: 50 (current) last modified: 2023-03-28 07:52:15

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...

3.7k - rev: 22 (current) last modified: 2018-01-19 22:00:52