Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5224

General programming discussion • Re: Trying to write a command to edit folder names in a directory

$
0
0
I need a command I can send through terminal or put into a Script File to rename all folders in a certain directory. All file names are of format File Name (####). I want a terminal command or command line I can put into a script to rename all folders to format (####) File Name.


Example:

New File (1785) > (1785) New File
Test Answers (2021)> (2021)Test Answers
in linux, spaces should be avoided, using -, _, . save you head aches as spaces have to be escaped.

Statistics: Posted by kerry_s — Tue Jun 18, 2024 2:02 am



Viewing all articles
Browse latest Browse all 5224

Trending Articles