Linux Consultant
  • Home
  • About
  • Contact
  • Login
  • Profile
  • Privacy Policy
  • Home
  • About
  • Contact
  • Login
  • Profile
  • Privacy Policy
June 19, 2018 | by Scott Kilroy | No comments

lowercase filen names

#! /bin/bash

DIR=$1

for a in `ls $DIR`
do
fname=`echo $a | tr A-Z a-z`
mv $DIR/$a $DIR/$fname
done;
exit 0

no related pages

bash

Search

Recent Posts

  • How to Find Deleted Files Still Eating Disk Space
  • Fedora Kinoite vs. Silverblue: My verdict after testing both immutable Linux distros
  • How I made my Windows 11 widgets truly useful: 8 simple tweaks to try before you hide them
  • Distribution Release: Unraid OS 7.3.0
  • Downloaded Cemu for Linux recently? You may have malware
  • I switched to a Wi-Fi 7 mesh router at home, and the faster download speed is so worth it
  • Exim Mail Server Hit by “Dead.Letter” TLS Flaw, Admins Told to Upgrade
  • Buying a robot mower? You can safely ignore these specs (and which ones actually matter)
  • Your Android phone is getting agentic powers with Gemini Intelligence – here’s how and when
  • First look at Googlebook: A premium Chromebook alternative for Android users

Tags

AI AlmaLinux app Apps App Updates aws beginner's guide blog C++ Debian 11 Debian 12 desktop environment Developer Discord distro distros docker Firefox FOSS free software git GNU/Linux Howtos HTML install instructions Java JavaScript kde KDE Plasma LF Platinum Member Content Linux distribution Linux tutorial new release News Raspberry Pi release RHEL Rocky Linux security The Linux Foundation tutorial Tutorials ubuntu 22.04 Ubuntu 22.04 LTS windows os
Copyright © 2023 Linux Consultant