Reputation
2,776
Top tag
Next privilege 3,000 Rep.
Cast close and reopen votes
Badges
7 29 65
Impact
~293k people reached

Apr
22
revised in linux using bash how can I split a text file based on percentage
expanded answer to include better calculations to provide a more accurate line split. With out including the same lines in more then one file.
Apr
22
comment in linux using bash how can I split a text file based on percentage
SUP_PERCENT=$(printf %.2f $(echo "scale=4; 0.4/0.6" | bc -l)) I found the following helpful when doing the calculations in Linux
Apr
22
revised in linux using bash how can I split a text file based on percentage
added rounding in the calculation to get a more precise line split
Apr
22
answered in linux using bash how can I split a text file based on percentage
Apr
22
asked in linux using bash how can I split a text file based on percentage
Apr
14
awarded  Nice Question
Apr
8
awarded  Popular Question
Mar
19
awarded  Popular Question
Feb
17
awarded  Yearling
Feb
7
awarded  Nice Question
Feb
5
awarded  Famous Question
Jan
15
awarded  Custodian
Dec
13
awarded  Famous Question
Dec
5
awarded  Notable Question
Nov
26
awarded  Nice Question
Nov
10
awarded  Informed
Nov
4
awarded  Good Question
Oct
17
awarded  Famous Question
Oct
10
awarded  Famous Question
Oct
7
awarded  Notable Question