Need to add numbers together from a file
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a file that looks like this:
$ cat filename.txt
112K CDR011587024051.csv
1568K CDR011587024052.csv
11K CDR011587024054.csv
2789K CDR011587024055.csv
I need to add just the numbers together to get my total.
linux
add a comment |Â
up vote
0
down vote
favorite
I have a file that looks like this:
$ cat filename.txt
112K CDR011587024051.csv
1568K CDR011587024052.csv
11K CDR011587024054.csv
2789K CDR011587024055.csv
I need to add just the numbers together to get my total.
linux
Assuming you mean the numbers in the first column, does theK
signify 1000? Would there occur any other suffixes? Should the output use the sameK
unit?
â Kusalananda
1 min ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a file that looks like this:
$ cat filename.txt
112K CDR011587024051.csv
1568K CDR011587024052.csv
11K CDR011587024054.csv
2789K CDR011587024055.csv
I need to add just the numbers together to get my total.
linux
I have a file that looks like this:
$ cat filename.txt
112K CDR011587024051.csv
1568K CDR011587024052.csv
11K CDR011587024054.csv
2789K CDR011587024055.csv
I need to add just the numbers together to get my total.
linux
linux
edited 2 mins ago
Filipe Brandenburger
4,062622
4,062622
asked 9 mins ago
Scott Mick
61
61
Assuming you mean the numbers in the first column, does theK
signify 1000? Would there occur any other suffixes? Should the output use the sameK
unit?
â Kusalananda
1 min ago
add a comment |Â
Assuming you mean the numbers in the first column, does theK
signify 1000? Would there occur any other suffixes? Should the output use the sameK
unit?
â Kusalananda
1 min ago
Assuming you mean the numbers in the first column, does the
K
signify 1000? Would there occur any other suffixes? Should the output use the same K
unit?â Kusalananda
1 min ago
Assuming you mean the numbers in the first column, does the
K
signify 1000? Would there occur any other suffixes? Should the output use the same K
unit?â Kusalananda
1 min ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
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%2funix.stackexchange.com%2fquestions%2f475910%2fneed-to-add-numbers-together-from-a-file%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
Assuming you mean the numbers in the first column, does the
K
signify 1000? Would there occur any other suffixes? Should the output use the sameK
unit?â Kusalananda
1 min ago