home.social

#pbcopy — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pbcopy, aggregated by home.social.

  1. Does anyone know a little bit about and formatting that could give me a little help?
I'm having some issues here with pbpaste breaking some text formatting, please boost.


  2. I regularily use #pbcopy and #pbpaste shell commands on #MacOS. They are great to quickly process text. E.g. this formats JSON in clipboard and puts it back to clipboard:

    $ pbpaste | jq | pbcopy

    or this find the number of unique lines containing the word foo in file.txt:

    $ grep foo file.txt | sort | uniq -c | pbcopy

    PS: you can use `xmllint --format -` to format XML rather than #jq for JSON

  3. I regularily use and shell commands on . They are great to quickly process text. E.g. this formats JSON in clipboard and puts it back to clipboard:

    $ pbpaste | jq | pbcopy

    or this find the number of unique lines containing the word foo in file.txt:

    $ grep foo file.txt | sort | uniq -c | pbcopy

    PS: you can use `xmllint --format -` to format XML rather than for JSON

  4. I regularily use #pbcopy and #pbpaste shell commands on #MacOS. They are great to quickly process text. E.g. this formats JSON in clipboard and puts it back to clipboard:

    $ pbpaste | jq | pbcopy

    or this find the number of unique lines containing the word foo in file.txt:

    $ grep foo file.txt | sort | uniq -c | pbcopy

    PS: you can use `xmllint --format -` to format XML rather than #jq for JSON

  5. I regularily use #pbcopy and #pbpaste shell commands on #MacOS. They are great to quickly process text. E.g. this formats JSON in clipboard and puts it back to clipboard:

    $ pbpaste | jq | pbcopy

    or this find the number of unique lines containing the word foo in file.txt:

    $ grep foo file.txt | sort | uniq -c | pbcopy

    PS: you can use `xmllint --format -` to format XML rather than #jq for JSON

  6. I regularily use #pbcopy and #pbpaste shell commands on #MacOS. They are great to quickly process text. E.g. this formats JSON in clipboard and puts it back to clipboard:

    $ pbpaste | jq | pbcopy

    or this find the number of unique lines containing the word foo in file.txt:

    $ grep foo file.txt | sort | uniq -c | pbcopy

    PS: you can use `xmllint --format -` to format XML rather than #jq for JSON