Search Results

Search: Posts Made By: mkingrey
14,069
Posted By mkingrey
How can I make this prompt me to enter the...
How can I make this prompt me to enter the PrevName and NewName when the program is first run?

Also do I just need to save this somewhere on my unix box use chmod filename to compile and then...
14,069
Posted By mkingrey
PrevName="123" NewName="321" for iFile in...
PrevName="123"
NewName="321"
for iFile in `find . -type d -name $PrevName`
do
oFile=`echo $iFile | sed "s/\(.*\)$PrevName/\1${NewName}/"`
echo "iFile = <"${iFile}"> oFile = <"$oFile">"
...
14,069
Posted By mkingrey
Find and rename all folders with name X.
Is there a command I can use to rename all directories with a certain name to a new name. For instance from my root directory I want to change all folders named '123' to '321' that are in the root...
Showing results 1 to 3 of 3

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