Changing first letter of a filename to uppercase
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
1
how can one change first letter of a filename to uppercase using a command line.
IS there any command line to do so?
command-line filename
add a comment |Â
up vote
7
down vote
favorite
1
how can one change first letter of a filename to uppercase using a command line.
IS there any command line to do so?
command-line filename
add a comment |Â
up vote
7
down vote
favorite
1
up vote
7
down vote
favorite
1
1
how can one change first letter of a filename to uppercase using a command line.
IS there any command line to do so?
command-line filename
how can one change first letter of a filename to uppercase using a command line.
IS there any command line to do so?
command-line filename
edited Aug 27 at 3:51
thomasrutter
25.3k46086
25.3k46086
asked Aug 27 at 3:21


harsh vardhan
361
361
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
13
down vote
Using the rename
command:
rename -n 's/./U$&/' *
-n
only shows what changes will be made. After you verify the changes, run without-n
to actually rename the files.s/./U$&/
:s
ubstitutes the first character (.
) with the uppercase (U
) of whatever was matched ($&
).
Example:
$ ls
bar foo
$ rename -n 's/./U$&/' *
rename(bar, Bar)
rename(foo, Foo)
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
13
down vote
Using the rename
command:
rename -n 's/./U$&/' *
-n
only shows what changes will be made. After you verify the changes, run without-n
to actually rename the files.s/./U$&/
:s
ubstitutes the first character (.
) with the uppercase (U
) of whatever was matched ($&
).
Example:
$ ls
bar foo
$ rename -n 's/./U$&/' *
rename(bar, Bar)
rename(foo, Foo)
add a comment |Â
up vote
13
down vote
Using the rename
command:
rename -n 's/./U$&/' *
-n
only shows what changes will be made. After you verify the changes, run without-n
to actually rename the files.s/./U$&/
:s
ubstitutes the first character (.
) with the uppercase (U
) of whatever was matched ($&
).
Example:
$ ls
bar foo
$ rename -n 's/./U$&/' *
rename(bar, Bar)
rename(foo, Foo)
add a comment |Â
up vote
13
down vote
up vote
13
down vote
Using the rename
command:
rename -n 's/./U$&/' *
-n
only shows what changes will be made. After you verify the changes, run without-n
to actually rename the files.s/./U$&/
:s
ubstitutes the first character (.
) with the uppercase (U
) of whatever was matched ($&
).
Example:
$ ls
bar foo
$ rename -n 's/./U$&/' *
rename(bar, Bar)
rename(foo, Foo)
Using the rename
command:
rename -n 's/./U$&/' *
-n
only shows what changes will be made. After you verify the changes, run without-n
to actually rename the files.s/./U$&/
:s
ubstitutes the first character (.
) with the uppercase (U
) of whatever was matched ($&
).
Example:
$ ls
bar foo
$ rename -n 's/./U$&/' *
rename(bar, Bar)
rename(foo, Foo)
answered Aug 27 at 3:48


Olorin
1,648619
1,648619
add a comment |Â
add a comment |Â
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1069263%2fchanging-first-letter-of-a-filename-to-uppercase%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password