• lower to upper case...

    From Shurato@1337:3/185 to All on Wed Jul 10 16:08:00 2024
    Ok, I was able to change all of my files to lower case. The problem is that some of the menus and scripts require upper case script or txtfile filenames and it's extremely inconsistent. I was hoping there was a way to create a symbolic link from lower case file names to upper case filenames, so that I wouldn't have to worry about that. It wouldn't need to be recursive.

    --
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp,
    ,wss) (Ports 22,23,110,21,119,8080) (ssh login 'bbs' pass 'shsbbs').


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1337:3/185)
  • From Shurato@1337:3/185 to Shurato on Wed Jul 10 21:30:00 2024
    that some of the menus and scripts require upper case script or
    txtfile filenames and it's extremely inconsistent. I was hoping
    there was a way to create a symbolic link from lower case file names
    to upper case filenames, so that I wouldn't have to worry about
    that. It wouldn't need to be recursive.

    Google Was my friend. I found:

    shopt -s extglob
    for file in *?([:upper:])* ; do
    ln -s "$file" "${file,,}"
    done

    --
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp,
    ,wss) (Ports 22,23,110,21,119,8080) (ssh login 'bbs' pass 'shsbbs').


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1337:3/185)
  • From Errol Casey@1337:3/194 to Shurato on Fri Jul 12 01:12:31 2024
    Re: lower to upper case...
    By: Shurato to Shurato on Wed Jul 10 2024 09:30 pm


    Google Was my friend. I found:

    shopt -s extglob
    for file in *?([:upper:])* ; do
    ln -s "$file" "${file,,}"
    done

    That's some serious unix-fu or google-fu since google help
    you find it.

    Amazing what you can do at the unix/linux commandline.

    I'm a system administrator by day :-)
    --- SBBSecho 3.20-Linux
    * Origin: Too Lazy BBS - toolazy.ddns.net:2323 (1337:3/194)
  • From MeaTLoTioN@1337:1/101 to Shurato on Fri Jul 12 14:28:28 2024
    On 10 Jul 2024, Shurato said the following...

    shopt -s extglob
    for file in *?([:upper:])* ; do
    ln -s "$file" "${file,,}"
    done

    That's nice, you probably could have made it a one-liner tho;

    shopt -s extglob && for file in *([A-Z])*; do ln -s "$file" "${file,,}"; done

    I love me a one-liner! =)

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N // @meatlotion:erb.pw

    |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ
    |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ

    ... Press any key to continue or any other key to quit...

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101)