Renaming thousand files with similar names
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm creating a bash script to rename my files. The files are in the same folder and all look something like this
1xxx_(bunch of characters)=(bunch of characters)=1234567890
Now what i want is to leave just the last 1234567890.
Basically deleting every character from the front to the second occurrence of =
bash shell files rename
add a comment |
I'm creating a bash script to rename my files. The files are in the same folder and all look something like this
1xxx_(bunch of characters)=(bunch of characters)=1234567890
Now what i want is to leave just the last 1234567890.
Basically deleting every character from the front to the second occurrence of =
bash shell files rename
1
Are you familiar with the$var##pattern
parameter expansion construct?
– steeldriver
Dec 29 '15 at 22:10
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20
add a comment |
I'm creating a bash script to rename my files. The files are in the same folder and all look something like this
1xxx_(bunch of characters)=(bunch of characters)=1234567890
Now what i want is to leave just the last 1234567890.
Basically deleting every character from the front to the second occurrence of =
bash shell files rename
I'm creating a bash script to rename my files. The files are in the same folder and all look something like this
1xxx_(bunch of characters)=(bunch of characters)=1234567890
Now what i want is to leave just the last 1234567890.
Basically deleting every character from the front to the second occurrence of =
bash shell files rename
bash shell files rename
edited Mar 9 at 14:14
Rui F Ribeiro
41.9k1483142
41.9k1483142
asked Dec 29 '15 at 22:05
OneStyle07OneStyle07
82
82
1
Are you familiar with the$var##pattern
parameter expansion construct?
– steeldriver
Dec 29 '15 at 22:10
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20
add a comment |
1
Are you familiar with the$var##pattern
parameter expansion construct?
– steeldriver
Dec 29 '15 at 22:10
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20
1
1
Are you familiar with the
$var##pattern
parameter expansion construct?– steeldriver
Dec 29 '15 at 22:10
Are you familiar with the
$var##pattern
parameter expansion construct?– steeldriver
Dec 29 '15 at 22:10
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20
add a comment |
3 Answers
3
active
oldest
votes
You can use the shell's parameter expansion feature: in particular
$parameter#word
$parameter##word
Remove matching prefix pattern. The word is expanded to produce
a pattern just as in pathname expansion. If the pattern matches
the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest
matching pattern (the ``#'' case) or the longest matching pat‐
tern (the ``##'' case) deleted.
So something like
for file in *; do echo mv -- "$file" "$file##*="; done
(remove the echo
if it appears to do the right thing).
One issue you may face is that filenames may become non-unique once the prefixes are removed. You can either choose to skip renaming these cases using the -n
or --no-clobber
option to mv
:
for file in *; do mv --no-clobber -- "$file" "$file##*="; done
or use the -b
or --backup
option to create distinct backups: most straightforwardly
for file in *; do mv --backup=numbered -- "$file" "$file##*="; done
which will add distinguishing suffixes .~1~
, .~2~
and so on.
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the-b
or--backup
options of themv
command: for example, adding--backup=numbered
will add default suffixes like.~1~
,.~2~
– steeldriver
Dec 29 '15 at 22:51
What that--
is doing in themv
command of your answer?
– Kira
Dec 29 '15 at 22:56
@Kira the--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the1xxx*
glob).
– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
|
show 1 more comment
The perl rename script (comes standard in debian/ubuntu, or available here: http://tips.webdesign10.com/files/rename.pl.txt ) will rename files based on a regular expression. with -n
it will just print the named files without actually renaming them, allowing you to test before performing the action:
# Check before renaming...
$ rename -n 's/^.*=//' *
1xxx_DSAFDSAFDSFA=FDAFDSAFDSAFSDA=12341243142 renamed as 12341243142
# now rename all files
$ rename 's/^.*=//' *
It is very flexible tool, as it can easily operate on files based on wildcards (e.g. *
for all files or *.txt
for all text files), and it accepts any perl regular expression.
It issed
for file name: sed does file content, rename does their names.
– ctrl-alt-delor
Dec 30 '15 at 21:32
add a comment |
awk
can save the day here too. I'm using cp
there, change it to mv
if you like:
ls | awk -F"=" 'system("cp -i "$0" "$3)'
I would use -i
as a cp
parameter too, just to be safe.
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters tomv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.
– Kira
Dec 29 '15 at 22:30
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252247%2frenaming-thousand-files-with-similar-names%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use the shell's parameter expansion feature: in particular
$parameter#word
$parameter##word
Remove matching prefix pattern. The word is expanded to produce
a pattern just as in pathname expansion. If the pattern matches
the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest
matching pattern (the ``#'' case) or the longest matching pat‐
tern (the ``##'' case) deleted.
So something like
for file in *; do echo mv -- "$file" "$file##*="; done
(remove the echo
if it appears to do the right thing).
One issue you may face is that filenames may become non-unique once the prefixes are removed. You can either choose to skip renaming these cases using the -n
or --no-clobber
option to mv
:
for file in *; do mv --no-clobber -- "$file" "$file##*="; done
or use the -b
or --backup
option to create distinct backups: most straightforwardly
for file in *; do mv --backup=numbered -- "$file" "$file##*="; done
which will add distinguishing suffixes .~1~
, .~2~
and so on.
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the-b
or--backup
options of themv
command: for example, adding--backup=numbered
will add default suffixes like.~1~
,.~2~
– steeldriver
Dec 29 '15 at 22:51
What that--
is doing in themv
command of your answer?
– Kira
Dec 29 '15 at 22:56
@Kira the--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the1xxx*
glob).
– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
|
show 1 more comment
You can use the shell's parameter expansion feature: in particular
$parameter#word
$parameter##word
Remove matching prefix pattern. The word is expanded to produce
a pattern just as in pathname expansion. If the pattern matches
the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest
matching pattern (the ``#'' case) or the longest matching pat‐
tern (the ``##'' case) deleted.
So something like
for file in *; do echo mv -- "$file" "$file##*="; done
(remove the echo
if it appears to do the right thing).
One issue you may face is that filenames may become non-unique once the prefixes are removed. You can either choose to skip renaming these cases using the -n
or --no-clobber
option to mv
:
for file in *; do mv --no-clobber -- "$file" "$file##*="; done
or use the -b
or --backup
option to create distinct backups: most straightforwardly
for file in *; do mv --backup=numbered -- "$file" "$file##*="; done
which will add distinguishing suffixes .~1~
, .~2~
and so on.
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the-b
or--backup
options of themv
command: for example, adding--backup=numbered
will add default suffixes like.~1~
,.~2~
– steeldriver
Dec 29 '15 at 22:51
What that--
is doing in themv
command of your answer?
– Kira
Dec 29 '15 at 22:56
@Kira the--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the1xxx*
glob).
– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
|
show 1 more comment
You can use the shell's parameter expansion feature: in particular
$parameter#word
$parameter##word
Remove matching prefix pattern. The word is expanded to produce
a pattern just as in pathname expansion. If the pattern matches
the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest
matching pattern (the ``#'' case) or the longest matching pat‐
tern (the ``##'' case) deleted.
So something like
for file in *; do echo mv -- "$file" "$file##*="; done
(remove the echo
if it appears to do the right thing).
One issue you may face is that filenames may become non-unique once the prefixes are removed. You can either choose to skip renaming these cases using the -n
or --no-clobber
option to mv
:
for file in *; do mv --no-clobber -- "$file" "$file##*="; done
or use the -b
or --backup
option to create distinct backups: most straightforwardly
for file in *; do mv --backup=numbered -- "$file" "$file##*="; done
which will add distinguishing suffixes .~1~
, .~2~
and so on.
You can use the shell's parameter expansion feature: in particular
$parameter#word
$parameter##word
Remove matching prefix pattern. The word is expanded to produce
a pattern just as in pathname expansion. If the pattern matches
the beginning of the value of parameter, then the result of the
expansion is the expanded value of parameter with the shortest
matching pattern (the ``#'' case) or the longest matching pat‐
tern (the ``##'' case) deleted.
So something like
for file in *; do echo mv -- "$file" "$file##*="; done
(remove the echo
if it appears to do the right thing).
One issue you may face is that filenames may become non-unique once the prefixes are removed. You can either choose to skip renaming these cases using the -n
or --no-clobber
option to mv
:
for file in *; do mv --no-clobber -- "$file" "$file##*="; done
or use the -b
or --backup
option to create distinct backups: most straightforwardly
for file in *; do mv --backup=numbered -- "$file" "$file##*="; done
which will add distinguishing suffixes .~1~
, .~2~
and so on.
edited Dec 29 '15 at 23:22
answered Dec 29 '15 at 22:31
steeldriversteeldriver
37.7k45389
37.7k45389
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the-b
or--backup
options of themv
command: for example, adding--backup=numbered
will add default suffixes like.~1~
,.~2~
– steeldriver
Dec 29 '15 at 22:51
What that--
is doing in themv
command of your answer?
– Kira
Dec 29 '15 at 22:56
@Kira the--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the1xxx*
glob).
– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
|
show 1 more comment
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the-b
or--backup
options of themv
command: for example, adding--backup=numbered
will add default suffixes like.~1~
,.~2~
– steeldriver
Dec 29 '15 at 22:51
What that--
is doing in themv
command of your answer?
– Kira
Dec 29 '15 at 22:56
@Kira the--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the1xxx*
glob).
– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
As you stated it works great,but now i figured out i have couple of hundreds files with the same characters,like 1393514394 so the second occurrence is not renamed,any way to add "a" like 1393514394a ,1393514394 b etc for the duplicate files ?
– OneStyle07
Dec 29 '15 at 22:43
@OneStyle07 look at the
-b
or --backup
options of the mv
command: for example, adding --backup=numbered
will add default suffixes like .~1~
, .~2~
– steeldriver
Dec 29 '15 at 22:51
@OneStyle07 look at the
-b
or --backup
options of the mv
command: for example, adding --backup=numbered
will add default suffixes like .~1~
, .~2~
– steeldriver
Dec 29 '15 at 22:51
What that
--
is doing in the mv
command of your answer?– Kira
Dec 29 '15 at 22:56
What that
--
is doing in the mv
command of your answer?– Kira
Dec 29 '15 at 22:56
@Kira the
--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the 1xxx*
glob).– steeldriver
Dec 29 '15 at 23:03
@Kira the
--
is a (more-or-less) standard way to denote the end of command options: it just makes commands like this safe in the case that there are filenames beginning with a hyphen (in this case there wouldn't be, given the 1xxx*
glob).– steeldriver
Dec 29 '15 at 23:03
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
@OneStyle07 please see edits
– steeldriver
Dec 29 '15 at 23:23
|
show 1 more comment
The perl rename script (comes standard in debian/ubuntu, or available here: http://tips.webdesign10.com/files/rename.pl.txt ) will rename files based on a regular expression. with -n
it will just print the named files without actually renaming them, allowing you to test before performing the action:
# Check before renaming...
$ rename -n 's/^.*=//' *
1xxx_DSAFDSAFDSFA=FDAFDSAFDSAFSDA=12341243142 renamed as 12341243142
# now rename all files
$ rename 's/^.*=//' *
It is very flexible tool, as it can easily operate on files based on wildcards (e.g. *
for all files or *.txt
for all text files), and it accepts any perl regular expression.
It issed
for file name: sed does file content, rename does their names.
– ctrl-alt-delor
Dec 30 '15 at 21:32
add a comment |
The perl rename script (comes standard in debian/ubuntu, or available here: http://tips.webdesign10.com/files/rename.pl.txt ) will rename files based on a regular expression. with -n
it will just print the named files without actually renaming them, allowing you to test before performing the action:
# Check before renaming...
$ rename -n 's/^.*=//' *
1xxx_DSAFDSAFDSFA=FDAFDSAFDSAFSDA=12341243142 renamed as 12341243142
# now rename all files
$ rename 's/^.*=//' *
It is very flexible tool, as it can easily operate on files based on wildcards (e.g. *
for all files or *.txt
for all text files), and it accepts any perl regular expression.
It issed
for file name: sed does file content, rename does their names.
– ctrl-alt-delor
Dec 30 '15 at 21:32
add a comment |
The perl rename script (comes standard in debian/ubuntu, or available here: http://tips.webdesign10.com/files/rename.pl.txt ) will rename files based on a regular expression. with -n
it will just print the named files without actually renaming them, allowing you to test before performing the action:
# Check before renaming...
$ rename -n 's/^.*=//' *
1xxx_DSAFDSAFDSFA=FDAFDSAFDSAFSDA=12341243142 renamed as 12341243142
# now rename all files
$ rename 's/^.*=//' *
It is very flexible tool, as it can easily operate on files based on wildcards (e.g. *
for all files or *.txt
for all text files), and it accepts any perl regular expression.
The perl rename script (comes standard in debian/ubuntu, or available here: http://tips.webdesign10.com/files/rename.pl.txt ) will rename files based on a regular expression. with -n
it will just print the named files without actually renaming them, allowing you to test before performing the action:
# Check before renaming...
$ rename -n 's/^.*=//' *
1xxx_DSAFDSAFDSFA=FDAFDSAFDSAFSDA=12341243142 renamed as 12341243142
# now rename all files
$ rename 's/^.*=//' *
It is very flexible tool, as it can easily operate on files based on wildcards (e.g. *
for all files or *.txt
for all text files), and it accepts any perl regular expression.
answered Dec 30 '15 at 20:06
A. GordonA. Gordon
44924
44924
It issed
for file name: sed does file content, rename does their names.
– ctrl-alt-delor
Dec 30 '15 at 21:32
add a comment |
It issed
for file name: sed does file content, rename does their names.
– ctrl-alt-delor
Dec 30 '15 at 21:32
It is
sed
for file name: sed does file content, rename does their names.– ctrl-alt-delor
Dec 30 '15 at 21:32
It is
sed
for file name: sed does file content, rename does their names.– ctrl-alt-delor
Dec 30 '15 at 21:32
add a comment |
awk
can save the day here too. I'm using cp
there, change it to mv
if you like:
ls | awk -F"=" 'system("cp -i "$0" "$3)'
I would use -i
as a cp
parameter too, just to be safe.
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters tomv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.
– Kira
Dec 29 '15 at 22:30
add a comment |
awk
can save the day here too. I'm using cp
there, change it to mv
if you like:
ls | awk -F"=" 'system("cp -i "$0" "$3)'
I would use -i
as a cp
parameter too, just to be safe.
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters tomv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.
– Kira
Dec 29 '15 at 22:30
add a comment |
awk
can save the day here too. I'm using cp
there, change it to mv
if you like:
ls | awk -F"=" 'system("cp -i "$0" "$3)'
I would use -i
as a cp
parameter too, just to be safe.
awk
can save the day here too. I'm using cp
there, change it to mv
if you like:
ls | awk -F"=" 'system("cp -i "$0" "$3)'
I would use -i
as a cp
parameter too, just to be safe.
edited Dec 29 '15 at 22:32
answered Dec 29 '15 at 22:24
KiraKira
3,222925
3,222925
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters tomv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.
– Kira
Dec 29 '15 at 22:30
add a comment |
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters tomv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.
– Kira
Dec 29 '15 at 22:30
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
I get sh: 1402190714: command not found usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory usage: mv [-f | -i | -n] [-v] source target mv [-f | -i | -n] [-v] source ... directory
– OneStyle07
Dec 29 '15 at 22:29
Did you try to add parameters to
mv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.– Kira
Dec 29 '15 at 22:30
Did you try to add parameters to
mv
? Make use to put it inside the quotes and to put spaces around it. I've edited the answer to show that.– Kira
Dec 29 '15 at 22:30
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252247%2frenaming-thousand-files-with-similar-names%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Are you familiar with the
$var##pattern
parameter expansion construct?– steeldriver
Dec 29 '15 at 22:10
I'm sad to say,but no,i'm not familiar
– OneStyle07
Dec 29 '15 at 22:20