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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    :rainbowCrow: (cr0w@infosec.exchange)'s status on Wednesday, 15-Jul-2026 00:01:15 JST:rainbowCrow::rainbowCrow:

    You know how there are weird tricks with computer stuff that you think everyone knows but they don't? I live learning and teaching new things like those when they come up.

    Today's was the carat substitution in bash. It probably works in other shells too but IDK, I'm too old to learn a new shell.

    The way it works is fairly similar to the / in sed or similar. You can use them to run the previous command but with a string substitution.

    For example, let's say I entered this command:

    dig A cascadiacrow.org

    When it fails to resolve, I realize it was a .com domain. Rather than retyping the command, or hitting the up arrow to change the previous command, you could do this:

    ^org^com^

    And it would run:

    dig A cascadiacrow.com

    Kind of cool with those one liners you spend way too much time on and find a typo.

    Anyway, I used it and someone thought it was magic so if it's new to you too, happy Monday.

    In conversationabout 16 days ago from infosec.exchangepermalink
  • 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.