Locating substring position in string
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Looking to extract the position of the third field, entered by the user, from the file "schemas.txt"
schemas="schemas.txt"
for i in $schemas[@];
do
awk 'for(i=1;i<=NF;i++)if($i=="$3")print i'
done
Any ideas as to why I'm stuck in an infinite loop here?
bash
New contributor
add a comment |Â
up vote
0
down vote
favorite
Looking to extract the position of the third field, entered by the user, from the file "schemas.txt"
schemas="schemas.txt"
for i in $schemas[@];
do
awk 'for(i=1;i<=NF;i++)if($i=="$3")print i'
done
Any ideas as to why I'm stuck in an infinite loop here?
bash
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Looking to extract the position of the third field, entered by the user, from the file "schemas.txt"
schemas="schemas.txt"
for i in $schemas[@];
do
awk 'for(i=1;i<=NF;i++)if($i=="$3")print i'
done
Any ideas as to why I'm stuck in an infinite loop here?
bash
New contributor
Looking to extract the position of the third field, entered by the user, from the file "schemas.txt"
schemas="schemas.txt"
for i in $schemas[@];
do
awk 'for(i=1;i<=NF;i++)if($i=="$3")print i'
done
Any ideas as to why I'm stuck in an infinite loop here?
bash
bash
New contributor
New contributor
New contributor
asked 6 mins ago
Conman
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Conman is a new contributor. Be nice, and check out our Code of Conduct.
Â
draft saved
draft discarded
Conman is a new contributor. Be nice, and check out our Code of Conduct.
Conman is a new contributor. Be nice, and check out our Code of Conduct.
Conman is a new contributor. Be nice, and check out our Code of Conduct.
Â
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%2funix.stackexchange.com%2fquestions%2f477368%2flocating-substring-position-in-string%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