fork(2) download
  1. #!/bin/bash
  2. s='123;rr;2;RRyO, chess mobil;pio;25.766;1;0;24353;21.876;;S
  3. 1243;rho;9;RpO, chess yext cat;downpio;67.98;1;0;237753;25.346;;S
  4. 1243;rho;9;RpO, chess yext cat;pio;73;1;0;237753;25.346;;S'
  5. sed 's/^\(\([^;]*;\)\{5\}[0-9]*\)[^;]*/\1/' <<< "$s"
Success #stdin #stdout 0.01s 5444KB
stdin
Standard input is empty
stdout
123;rr;2;RRyO, chess mobil;pio;25;1;0;24353;21.876;;S
1243;rho;9;RpO, chess yext cat;downpio;67;1;0;237753;25.346;;S
1243;rho;9;RpO, chess yext cat;pio;73;1;0;237753;25.346;;S