Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

jnareb@fosstodon.orgJ

jnareb@fosstodon.org

@jnareb@fosstodon.org
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • New post: shell tricks that aren't exactly secret, but aren't always taught either.
    jnareb@fosstodon.orgJ jnareb@fosstodon.org

    @Larvitz About the `pushd` / `popd` trick: you can use it to switch between set of directories with `dirs -v` to get list of directories on stack and `pushd +<n>` (e.g. `pushd +1`) to switch to n-th directory on the stack.

    About `tee`: I have recently found a nice trick to make the `tee` command useful in presence of progress bars and colors, namely `| tee >(grep -v $'\r' | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' >command.out)` - which probably could be simplified.

    Uncategorized unix bash shell sysadmin freebsd
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups