Skip to main content
Tweeted twitter.com/StackUnix/status/725707315207376896
fix a typo
Source Link
Thomas Dickey
  • 79.2k
  • 9
  • 189
  • 289

adding special charterscharacters to folder names

I have a very long list of folders havewith the following naming convention

ABS1789_2563-01
ABS1789_2563-02
ABS1789_2563-02

.
.
.

How can I add " - " between ABS and 1789 then replace "_" by "-" between 1789 and 2563 using bash?

adding special charters to folder names

I have very long list of folders have the following naming convention

ABS1789_2563-01
ABS1789_2563-02
ABS1789_2563-02

.
.
.

How can I add " - " between ABS and 1789 then replace "_" by "-" between 1789 and 2563 using bash?

adding special characters to folder names

I have a very long list of folders with the following naming convention

ABS1789_2563-01
ABS1789_2563-02
ABS1789_2563-02

.
.
.

How can I add " - " between ABS and 1789 then replace "_" by "-" between 1789 and 2563 using bash?

Source Link
user88036
user88036

adding special charters to folder names

I have very long list of folders have the following naming convention

ABS1789_2563-01
ABS1789_2563-02
ABS1789_2563-02

.
.
.

How can I add " - " between ABS and 1789 then replace "_" by "-" between 1789 and 2563 using bash?