GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    JP Mens (jpmens@mastodon.social)'s status on Saturday, 12-Nov-2022 00:29:01 JST JP Mens JP Mens
    in reply to
    • Ed Davies
    • HACKthePRISONS

    @edavies

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

    @bigMouthCommie

    In conversation Saturday, 12-Nov-2022 00:29:01 JST from mastodon.social permalink
    • silverwizard likes this.
    • Embed this notice
      Ed Davies (edavies@octodon.social)'s status on Saturday, 12-Nov-2022 00:29:07 JST Ed Davies Ed Davies
      in reply to
      • HACKthePRISONS

      @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

      In conversation Saturday, 12-Nov-2022 00:29:07 JST permalink
    • Embed this notice
      JP Mens (jpmens@mastodon.social)'s status on Saturday, 12-Nov-2022 00:29:09 JST JP Mens JP Mens
      in reply to
      • HACKthePRISONS

      @bigMouthCommie any list of words/lines produced in a shell, become comma-separated.

      Just try it:

      $ ls -1 | paste -sd "," -

      In conversation Saturday, 12-Nov-2022 00:29:09 JST permalink
    • Embed this notice
      HACKthePRISONS (bigmouthcommie@kolektiva.social)'s status on Saturday, 12-Nov-2022 00:29:11 JST HACKthePRISONS HACKthePRISONS
      in reply to

      @jpmens
      I don't understand. can you show me example texts?

      In conversation Saturday, 12-Nov-2022 00:29:11 JST permalink
    • Embed this notice
      JP Mens (jpmens@mastodon.social)'s status on Saturday, 12-Nov-2022 00:29:12 JST JP Mens JP Mens

      comma-separated list of anything in a #Unix shell:

      ... | paste -sd "," -

      e.g.:

      cut -d: -f1 /etc/passwd | paste -sd "," -

      #Unix #quickies

      In conversation Saturday, 12-Nov-2022 00:29:12 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

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.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.