Lemmy Coupou.fr
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 1 year ago

bash tricks

sh.itjust.works

message-square
42
link
fedilink
419

bash tricks

sh.itjust.works

zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 1 year ago
message-square
42
link
fedilink
  • zarkanian@sh.itjust.worksOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    What’s a better way?

    • Great Blue Heron@lemmy.ca
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 year ago

      convert $i ${i%.*}.jpg

      NB: I’m no guru - I just googled “remove file extension in bash”.

      • qqq@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Should also definitely be quoting both arguments

Bash@lemmy.ml

bash@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !bash@lemmy.ml

Talk about the Bash Shell and Bash scripting

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 24 users / 6 months
  • 1 local subscriber
  • 995 subscribers
  • 41 Posts
  • 122 Comments
  • Modlog
  • mods:
  • Wronnay@lemmy.ml
  • Elsie@lemmy.ml
  • BE: 0.19.16
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org