Tagged Questions
3
votes
1answer
112 views
Pass colors from ls through pipe to awk 'print' statement
This is a follow-up to my question from yesterday, Show sum of file sizes in directory listing.
Thanks to Zero Piraeus and a point in the right direction by Mauritz Hansen, I now have
function ...
4
votes
3answers
253 views
How can I do the equivalent of tail -f with ls? [duplicate]
Possible Duplicate:
Is it possible to follow a command (run repeatedly)? as one would follow a file using tail -f?
I would like to monitor files that are being downloaded to a directory in ...
0
votes
2answers
300 views
ls outputs multiple columns even if piped to grep with grml's zsh config
I just decided to give zsh a go against Bash and came across some unhandy behaviour about which I couldn't find anything on the net:
If you do a ls | grep foo in Bash, the ls only contains one file ...
1
vote
3answers
463 views
Ls with spaces + variables
I want to do something like this, but it doesn't save the variable after the piping ends:
fs=( )
echo ${fs[@]}
ls -A1 |
while read f
do
echo ${fs[@]}
fs+=( "$f" )
echo ${fs[@]}
done
echo ...