Search Results

Search: Posts Made By: SANDO
2,294
Posted By disedorgue
Hi, Maybe with sed below but with same resultat...
Hi,
Maybe with sed below but with same resultat give by RudiC:
sed -e 's/.\{7\}\|.\{1,6\}$/_&/g;s/^_//;s/_\(.\)[0-9]*/\1/g' file
Regards.
2,294
Posted By stomp
... I'm curious how fast the awk solutions will...
... I'm curious how fast the awk solutions will be.

Here the test data generator (about 1 GB Data):


#!/bin/bash

tr -dc '0-9' </dev/urandom | fold -w45000 | while read line ;do
...
Showing results 1 to 2 of 2

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