Extract a number in a txt file by using regular expressions

 Clash Royale CLAN TAG#URR8PPP
Clash Royale CLAN TAG#URR8PPP up vote
5
down vote
favorite
I am saving the output of terminal by 2>&1 | tee ./ in a 
results.txt.txt file which has the following text:
executing: ./home/images/image-001-041.png
0,33, /results/image-001-041.png
1.7828,32, /results/image-001-040.png
1.86051,34, /results/image-001-042.png
1.90462,31, /results/image-001-039.png
1.90954,30, /results/image-001-038.png
1.91953,35, /results/image-001-043.png
1.92677,28, /results/image-001-036.png
1.92723,3160, /results/image-037-035.png
1.93353,7450, /results/image-086-035.png
1.93375,1600, /results/image-019-044.png
I need to take the second numbers (after first comma sign, i.e. 33,32,34,...) and save it in a list in Python. What is the bash command, or the regular expression command in python?
Thanks 
command-line bash python text-processing
add a comment |Â
up vote
5
down vote
favorite
I am saving the output of terminal by 2>&1 | tee ./ in a 
results.txt.txt file which has the following text:
executing: ./home/images/image-001-041.png
0,33, /results/image-001-041.png
1.7828,32, /results/image-001-040.png
1.86051,34, /results/image-001-042.png
1.90462,31, /results/image-001-039.png
1.90954,30, /results/image-001-038.png
1.91953,35, /results/image-001-043.png
1.92677,28, /results/image-001-036.png
1.92723,3160, /results/image-037-035.png
1.93353,7450, /results/image-086-035.png
1.93375,1600, /results/image-019-044.png
I need to take the second numbers (after first comma sign, i.e. 33,32,34,...) and save it in a list in Python. What is the bash command, or the regular expression command in python?
Thanks 
command-line bash python text-processing
 
 
 
 
 
 
 - awk -F ',' 'print $2' results.txt
 â stumblebee
 Apr 8 at 8:01
 
 
 
 
 
 
 
 
 
 @EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
 â stumblebee
 Apr 8 at 19:35
 
 
 
 
 
 
 2
 
 
 
 
 @stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:44
 
 
 
 
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I am saving the output of terminal by 2>&1 | tee ./ in a 
results.txt.txt file which has the following text:
executing: ./home/images/image-001-041.png
0,33, /results/image-001-041.png
1.7828,32, /results/image-001-040.png
1.86051,34, /results/image-001-042.png
1.90462,31, /results/image-001-039.png
1.90954,30, /results/image-001-038.png
1.91953,35, /results/image-001-043.png
1.92677,28, /results/image-001-036.png
1.92723,3160, /results/image-037-035.png
1.93353,7450, /results/image-086-035.png
1.93375,1600, /results/image-019-044.png
I need to take the second numbers (after first comma sign, i.e. 33,32,34,...) and save it in a list in Python. What is the bash command, or the regular expression command in python?
Thanks 
command-line bash python text-processing
I am saving the output of terminal by 2>&1 | tee ./ in a 
results.txt.txt file which has the following text:
executing: ./home/images/image-001-041.png
0,33, /results/image-001-041.png
1.7828,32, /results/image-001-040.png
1.86051,34, /results/image-001-042.png
1.90462,31, /results/image-001-039.png
1.90954,30, /results/image-001-038.png
1.91953,35, /results/image-001-043.png
1.92677,28, /results/image-001-036.png
1.92723,3160, /results/image-037-035.png
1.93353,7450, /results/image-086-035.png
1.93375,1600, /results/image-019-044.png
I need to take the second numbers (after first comma sign, i.e. 33,32,34,...) and save it in a list in Python. What is the bash command, or the regular expression command in python?
Thanks 
command-line bash python text-processing
command-line bash python text-processing
asked Apr 8 at 7:37
sc241
506
506
 
 
 
 
 
 
 - awk -F ',' 'print $2' results.txt
 â stumblebee
 Apr 8 at 8:01
 
 
 
 
 
 
 
 
 
 @EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
 â stumblebee
 Apr 8 at 19:35
 
 
 
 
 
 
 2
 
 
 
 
 @stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:44
 
 
 
 
add a comment |Â
 
 
 
 
 
 
 - awk -F ',' 'print $2' results.txt
 â stumblebee
 Apr 8 at 8:01
 
 
 
 
 
 
 
 
 
 @EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
 â stumblebee
 Apr 8 at 19:35
 
 
 
 
 
 
 2
 
 
 
 
 @stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:44
 
 
 
 
awk -F ',' 'print $2' results.txtâ stumblebee
Apr 8 at 8:01
awk -F ',' 'print $2' results.txtâ stumblebee
Apr 8 at 8:01
@EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
â stumblebee
Apr 8 at 19:35
@EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
â stumblebee
Apr 8 at 19:35
2
2
@stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
â Sergiy Kolodyazhnyy
Apr 8 at 19:44
@stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
â Sergiy Kolodyazhnyy
Apr 8 at 19:44
add a comment |Â
 5 Answers
 5
 
active
oldest
votes
up vote
11
down vote
accepted
Using cut:
cut -sd',' -f2 < result.txt
from man cut:
-d, --delimiter=DELIM
 use DELIM instead of TAB for field delimiter
-s, --only-delimited
 do not print lines not containing delimiters
-f, --fields=LIST
 select only these fields; also print any line that contains
 no delimiter character, unless the -s option is specified
add a comment |Â
up vote
6
down vote
You could use awk
awk -F ',' 'print $2' results.txt
Define a comma as the field separator and print the second column.
add a comment |Â
up vote
5
down vote
Example with sed
$ sed -rn 's/[^,]+,([^,]+),.*/1/p' results.txt
33
32
34
31
30
35
28
3160
7450
1600
Notes
- -ndon't print anything until we ask for it (removes non-matching lines)
- -ruse ERE (so we don't need backslashes for- +and- (- )metacharacters)
- [^,]+,some non-commas followed by a comma
- ([^,]+),save some non-commas followed by a comma for later (we only want this part)
- .*any number of any characters (gets rid of the rest of the line)
- 1the pattern we saved
- pprint the lines we changed (needed with- -n)
add a comment |Â
up vote
3
down vote
Since you mention Python:
with open('results.txt') as results:
 ids = [int(line.split(',')[1]) for line in results if ',' in line]
 print(ids)
It creates a list of integers as ids, and displays it:
[33, 32, 34, 31, 30, 35, 28, 3160, 7450, 1600]
 
 
 
 
 
 
 One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use- "n".join(ids)for printing each item on separate line or- " ".join(ids)for space-separated list.
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:40
 
 
 
 
 
 
 
 
 
 @SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
 â Eric Duminil
 Apr 9 at 6:32
 
 
 
 
 
 
 
 
 
 Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
 â Sergiy Kolodyazhnyy
 Apr 9 at 7:48
 
 
 
add a comment |Â
up vote
2
down vote
You can use Perl which is similar to the awk and sed solutions posted.
-a enables automatic splitting on each line. 
-F is used to specify the delimiter to split each line. It defaults to ' '. Then the result is stored in @F. Hence $F[1] gives us the second column. 
-l makes sure a newline is added to each line. 
-e is used to specify the command we need to execute on each line which is print
$ perl -F, -ale 'print $F[1]' results.txt
33
32
34
31
30
35
28
3160
7450
1600
The above expands to the below program :
$ perl -MO=Deparse -F, -ale 'print $F[1]' results.txt
BEGIN $/ = "n"; $ = "n"; 
LINE: while (defined($_ = readline ARGV)) 
 chomp $_;
 our @F = split(/,/, $_, 0);
 print $F[1];
-e syntax OK
add a comment |Â
 5 Answers
 5
 
active
oldest
votes
 5 Answers
 5
 
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
11
down vote
accepted
Using cut:
cut -sd',' -f2 < result.txt
from man cut:
-d, --delimiter=DELIM
 use DELIM instead of TAB for field delimiter
-s, --only-delimited
 do not print lines not containing delimiters
-f, --fields=LIST
 select only these fields; also print any line that contains
 no delimiter character, unless the -s option is specified
add a comment |Â
up vote
11
down vote
accepted
Using cut:
cut -sd',' -f2 < result.txt
from man cut:
-d, --delimiter=DELIM
 use DELIM instead of TAB for field delimiter
-s, --only-delimited
 do not print lines not containing delimiters
-f, --fields=LIST
 select only these fields; also print any line that contains
 no delimiter character, unless the -s option is specified
add a comment |Â
up vote
11
down vote
accepted
up vote
11
down vote
accepted
Using cut:
cut -sd',' -f2 < result.txt
from man cut:
-d, --delimiter=DELIM
 use DELIM instead of TAB for field delimiter
-s, --only-delimited
 do not print lines not containing delimiters
-f, --fields=LIST
 select only these fields; also print any line that contains
 no delimiter character, unless the -s option is specified
Using cut:
cut -sd',' -f2 < result.txt
from man cut:
-d, --delimiter=DELIM
 use DELIM instead of TAB for field delimiter
-s, --only-delimited
 do not print lines not containing delimiters
-f, --fields=LIST
 select only these fields; also print any line that contains
 no delimiter character, unless the -s option is specified
edited Apr 9 at 6:59
answered Apr 8 at 8:16
ñÃÂsýù÷
23.4k2191152
23.4k2191152
add a comment |Â
add a comment |Â
up vote
6
down vote
You could use awk
awk -F ',' 'print $2' results.txt
Define a comma as the field separator and print the second column.
add a comment |Â
up vote
6
down vote
You could use awk
awk -F ',' 'print $2' results.txt
Define a comma as the field separator and print the second column.
add a comment |Â
up vote
6
down vote
up vote
6
down vote
You could use awk
awk -F ',' 'print $2' results.txt
Define a comma as the field separator and print the second column.
You could use awk
awk -F ',' 'print $2' results.txt
Define a comma as the field separator and print the second column.
edited Apr 8 at 19:36
answered Apr 8 at 8:19


stumblebee
2,3083922
2,3083922
add a comment |Â
add a comment |Â
up vote
5
down vote
Example with sed
$ sed -rn 's/[^,]+,([^,]+),.*/1/p' results.txt
33
32
34
31
30
35
28
3160
7450
1600
Notes
- -ndon't print anything until we ask for it (removes non-matching lines)
- -ruse ERE (so we don't need backslashes for- +and- (- )metacharacters)
- [^,]+,some non-commas followed by a comma
- ([^,]+),save some non-commas followed by a comma for later (we only want this part)
- .*any number of any characters (gets rid of the rest of the line)
- 1the pattern we saved
- pprint the lines we changed (needed with- -n)
add a comment |Â
up vote
5
down vote
Example with sed
$ sed -rn 's/[^,]+,([^,]+),.*/1/p' results.txt
33
32
34
31
30
35
28
3160
7450
1600
Notes
- -ndon't print anything until we ask for it (removes non-matching lines)
- -ruse ERE (so we don't need backslashes for- +and- (- )metacharacters)
- [^,]+,some non-commas followed by a comma
- ([^,]+),save some non-commas followed by a comma for later (we only want this part)
- .*any number of any characters (gets rid of the rest of the line)
- 1the pattern we saved
- pprint the lines we changed (needed with- -n)
add a comment |Â
up vote
5
down vote
up vote
5
down vote
Example with sed
$ sed -rn 's/[^,]+,([^,]+),.*/1/p' results.txt
33
32
34
31
30
35
28
3160
7450
1600
Notes
- -ndon't print anything until we ask for it (removes non-matching lines)
- -ruse ERE (so we don't need backslashes for- +and- (- )metacharacters)
- [^,]+,some non-commas followed by a comma
- ([^,]+),save some non-commas followed by a comma for later (we only want this part)
- .*any number of any characters (gets rid of the rest of the line)
- 1the pattern we saved
- pprint the lines we changed (needed with- -n)
Example with sed
$ sed -rn 's/[^,]+,([^,]+),.*/1/p' results.txt
33
32
34
31
30
35
28
3160
7450
1600
Notes
- -ndon't print anything until we ask for it (removes non-matching lines)
- -ruse ERE (so we don't need backslashes for- +and- (- )metacharacters)
- [^,]+,some non-commas followed by a comma
- ([^,]+),save some non-commas followed by a comma for later (we only want this part)
- .*any number of any characters (gets rid of the rest of the line)
- 1the pattern we saved
- pprint the lines we changed (needed with- -n)
answered Apr 8 at 8:12


Zanna
48k13119228
48k13119228
add a comment |Â
add a comment |Â
up vote
3
down vote
Since you mention Python:
with open('results.txt') as results:
 ids = [int(line.split(',')[1]) for line in results if ',' in line]
 print(ids)
It creates a list of integers as ids, and displays it:
[33, 32, 34, 31, 30, 35, 28, 3160, 7450, 1600]
 
 
 
 
 
 
 One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use- "n".join(ids)for printing each item on separate line or- " ".join(ids)for space-separated list.
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:40
 
 
 
 
 
 
 
 
 
 @SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
 â Eric Duminil
 Apr 9 at 6:32
 
 
 
 
 
 
 
 
 
 Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
 â Sergiy Kolodyazhnyy
 Apr 9 at 7:48
 
 
 
add a comment |Â
up vote
3
down vote
Since you mention Python:
with open('results.txt') as results:
 ids = [int(line.split(',')[1]) for line in results if ',' in line]
 print(ids)
It creates a list of integers as ids, and displays it:
[33, 32, 34, 31, 30, 35, 28, 3160, 7450, 1600]
 
 
 
 
 
 
 One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use- "n".join(ids)for printing each item on separate line or- " ".join(ids)for space-separated list.
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:40
 
 
 
 
 
 
 
 
 
 @SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
 â Eric Duminil
 Apr 9 at 6:32
 
 
 
 
 
 
 
 
 
 Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
 â Sergiy Kolodyazhnyy
 Apr 9 at 7:48
 
 
 
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Since you mention Python:
with open('results.txt') as results:
 ids = [int(line.split(',')[1]) for line in results if ',' in line]
 print(ids)
It creates a list of integers as ids, and displays it:
[33, 32, 34, 31, 30, 35, 28, 3160, 7450, 1600]
Since you mention Python:
with open('results.txt') as results:
 ids = [int(line.split(',')[1]) for line in results if ',' in line]
 print(ids)
It creates a list of integers as ids, and displays it:
[33, 32, 34, 31, 30, 35, 28, 3160, 7450, 1600]
edited Apr 8 at 15:43
answered Apr 8 at 11:51


Eric Duminil
1686
1686
 
 
 
 
 
 
 One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use- "n".join(ids)for printing each item on separate line or- " ".join(ids)for space-separated list.
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:40
 
 
 
 
 
 
 
 
 
 @SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
 â Eric Duminil
 Apr 9 at 6:32
 
 
 
 
 
 
 
 
 
 Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
 â Sergiy Kolodyazhnyy
 Apr 9 at 7:48
 
 
 
add a comment |Â
 
 
 
 
 
 
 One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use- "n".join(ids)for printing each item on separate line or- " ".join(ids)for space-separated list.
 â Sergiy Kolodyazhnyy
 Apr 8 at 19:40
 
 
 
 
 
 
 
 
 
 @SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
 â Eric Duminil
 Apr 9 at 6:32
 
 
 
 
 
 
 
 
 
 Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
 â Sergiy Kolodyazhnyy
 Apr 9 at 7:48
 
 
 
One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use
"n".join(ids) for printing each item on separate line or " ".join(ids) for space-separated list.â Sergiy Kolodyazhnyy
Apr 8 at 19:40
One may also turn the output into a string to print on stdout for further processing, since having list (with brackets and commas) can be undesirable. Use
"n".join(ids) for printing each item on separate line or " ".join(ids) for space-separated list.â Sergiy Kolodyazhnyy
Apr 8 at 19:40
@SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
â Eric Duminil
Apr 9 at 6:32
@SergiyKolodyazhnyy: OP specifically mentioned that the ids should be saved as a list in python. That's what the above code does. Once its in a list, in can be processed as you wish.
â Eric Duminil
Apr 9 at 6:32
Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
â Sergiy Kolodyazhnyy
Apr 9 at 7:48
Ah, missed that part. Typically these types of questions ask to just extract the data and that's it. Don't worry, you've got a good answer there.
â Sergiy Kolodyazhnyy
Apr 9 at 7:48
add a comment |Â
up vote
2
down vote
You can use Perl which is similar to the awk and sed solutions posted.
-a enables automatic splitting on each line. 
-F is used to specify the delimiter to split each line. It defaults to ' '. Then the result is stored in @F. Hence $F[1] gives us the second column. 
-l makes sure a newline is added to each line. 
-e is used to specify the command we need to execute on each line which is print
$ perl -F, -ale 'print $F[1]' results.txt
33
32
34
31
30
35
28
3160
7450
1600
The above expands to the below program :
$ perl -MO=Deparse -F, -ale 'print $F[1]' results.txt
BEGIN $/ = "n"; $ = "n"; 
LINE: while (defined($_ = readline ARGV)) 
 chomp $_;
 our @F = split(/,/, $_, 0);
 print $F[1];
-e syntax OK
add a comment |Â
up vote
2
down vote
You can use Perl which is similar to the awk and sed solutions posted.
-a enables automatic splitting on each line. 
-F is used to specify the delimiter to split each line. It defaults to ' '. Then the result is stored in @F. Hence $F[1] gives us the second column. 
-l makes sure a newline is added to each line. 
-e is used to specify the command we need to execute on each line which is print
$ perl -F, -ale 'print $F[1]' results.txt
33
32
34
31
30
35
28
3160
7450
1600
The above expands to the below program :
$ perl -MO=Deparse -F, -ale 'print $F[1]' results.txt
BEGIN $/ = "n"; $ = "n"; 
LINE: while (defined($_ = readline ARGV)) 
 chomp $_;
 our @F = split(/,/, $_, 0);
 print $F[1];
-e syntax OK
add a comment |Â
up vote
2
down vote
up vote
2
down vote
You can use Perl which is similar to the awk and sed solutions posted.
-a enables automatic splitting on each line. 
-F is used to specify the delimiter to split each line. It defaults to ' '. Then the result is stored in @F. Hence $F[1] gives us the second column. 
-l makes sure a newline is added to each line. 
-e is used to specify the command we need to execute on each line which is print
$ perl -F, -ale 'print $F[1]' results.txt
33
32
34
31
30
35
28
3160
7450
1600
The above expands to the below program :
$ perl -MO=Deparse -F, -ale 'print $F[1]' results.txt
BEGIN $/ = "n"; $ = "n"; 
LINE: while (defined($_ = readline ARGV)) 
 chomp $_;
 our @F = split(/,/, $_, 0);
 print $F[1];
-e syntax OK
You can use Perl which is similar to the awk and sed solutions posted.
-a enables automatic splitting on each line. 
-F is used to specify the delimiter to split each line. It defaults to ' '. Then the result is stored in @F. Hence $F[1] gives us the second column. 
-l makes sure a newline is added to each line. 
-e is used to specify the command we need to execute on each line which is print
$ perl -F, -ale 'print $F[1]' results.txt
33
32
34
31
30
35
28
3160
7450
1600
The above expands to the below program :
$ perl -MO=Deparse -F, -ale 'print $F[1]' results.txt
BEGIN $/ = "n"; $ = "n"; 
LINE: while (defined($_ = readline ARGV)) 
 chomp $_;
 our @F = split(/,/, $_, 0);
 print $F[1];
-e syntax OK
answered Apr 9 at 10:41
Wordzilla
16818
16818
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2f1023000%2fextract-a-number-in-a-txt-file-by-using-regular-expressions%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
awk -F ',' 'print $2' results.txtâ stumblebee
Apr 8 at 8:01
@EliahKagan I had intended to put an answer but got interrupted. By the time I posted, there were already a couple answers there so I decided to leave it as a helpful comment. I appreciate the insight and nudge.
â stumblebee
Apr 8 at 19:35
2
@stumblebee Who said having couple answers is an issue ? Ask Ubuntu isn't a race, it's a marathon and all about usefulness of answers. I see you posted one already. Good job !
â Sergiy Kolodyazhnyy
Apr 8 at 19:44