Search Results

Search: Posts Made By: soliton
3,332
Posted By soliton
Try csplit? [soliton@UAT:test]$ csplit...
Try csplit?
[soliton@UAT:test]$ csplit test.txt "/As of/+1" {*}
36
52
51
0
[soliton@UAT:test]$ cat xx00
aaaaa
bbbbbbb
cccccccccc
As of 2013
[soliton@UAT:test]$ cat xx01
ddddddddd...
1,316
Posted By soliton
You may use paste and bc. paste -sd+...
You may use paste and bc.


paste -sd+ test.txt | bc


Assuming you don't have any extra lines and all lines are numerics.
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy