Search Results

Search: Posts Made By: jjzieve
6,609
Posted By jjzieve
Renaming multiple files, specifically changing their case
Hey all,

I'm running a BASH shell and I was wondering if anyone knows a code to rename all the files in a directory. All I need to do is change the first character in the file from uppercase to...
905
Posted By jjzieve
syntax error
Hi, can anyone tell me the syntax error on this:


#!/bin/sh
# changing first character to lowercase

for file in * do
first=${i:0:1} #it says its here on line 5
mv "$file"...
12,463
Posted By jjzieve
Thanks, script runs fine, and I'm using bash btw....
Thanks, script runs fine, and I'm using bash btw.

---------- Post updated at 04:25 PM ---------- Previous update was at 04:20 PM ----------

Would you mind explaining exactly what the lines do?
12,463
Posted By jjzieve
Renaming multiple files with a shell script
Hey guys,

I'm really new to UNIX and shell scripting in general. For my internship I need to rename a bunch of files. Specifically, I need to change the first letter of each of the files to...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy