thanks, I am aware of that.
I feared that if the person asking the question tried the `ls' without the `-1' they wouldn't understand what I am talking about.
I sometimes _try_ and make things easier to understand. :)
thanks, I am aware of that.
I feared that if the person asking the question tried the `ls' without the `-1' they wouldn't understand what I am talking about.
I sometimes _try_ and make things easier to understand. :)
@jpmens You don't need the -1, it's ls's default if the output isn't going to a terminal. E.g, `ls | less`.
It's not in the man page which is a bit surprising, I thought I'd read it there. Did wonder if it was GNU-specific but then I thought, huh, if it wasn't going to a terminal how would it query for the page width to decide how many columns to use?
@bigMouthCommie any list of words/lines produced in a shell, become comma-separated.
Just try it:
$ ls -1 | paste -sd "," -
@jpmens
I don't understand. can you show me example texts?
comma-separated list of anything in a #Unix shell:
... | paste -sd "," -
e.g.:
cut -d: -f1 /etc/passwd | paste -sd "," -
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.