|
1 | 1 | # lsi (a command-line utility)
|
2 | 2 |
|
3 | | -ls command alternative (not a replacement). Output is either cleanly formatted table or string of null terminated file names parseable by xargs command. Default behaviour is to show only non-hidden files and directories of directory passed or current directory if no directory is given, in table format. |
| 3 | +`ls` command alternative (not a replacement). Output is either cleanly formatted table or string of null terminated file names parseable by xargs command. Default behaviour is to show only non-hidden files and directories of directory passed or current directory if no directory is given, in table format. |
| 4 | +It attempts to solve some problems with traditional UNIX ls command: |
| 5 | + |
| 6 | +* Output is in table format and not garbled like in traditional UNIX `ls` command. (See screen shot below) |
| 7 | +* File names is _single qouted_ to help distinguish files with spaces in their names. (See screen shot below) |
| 8 | +* You can safely parse its output. (See explanation below) |
| 9 | + |
| 10 | +Any improvement or feature addition request is most welcome. I will be adding more features myself in future. |
| 11 | + |
4 | 12 | Written in Python for UNIX like OS
|
5 | 13 | Requires Python version 3.3 or later
|
6 | 14 | Version 2
|
@@ -79,7 +87,7 @@ optional arguments:
|
79 | 87 | 'dir6/' 'dir5/' 'dir4/' 'dir3/' 'dir2/'
|
80 | 88 | 'dir1/'
|
81 | 89 |
|
82 | | -[You should not parse the output of `ls` command,](http://www.mywiki.wooledge.org/ParsingLs) but **you can safely parse the output of `lsi`** |
| 90 | +[You should not parse the output of `ls` command,](https://mywiki.wooledge.org/ParsingLs) but **you can safely parse the output of `lsi`** |
83 | 91 |
|
84 | 92 | # move all hidden files to hidden-files directory
|
85 | 93 | $ lsi -ifx | xargs -r0 mv -t hidden-files
|
|
0 commit comments