Search Results

Search: Posts Made By: maouinin
1,525
Posted By bigearsbilly
this is fun! perl -pe...
this is fun!


perl -pe 's/(?:=)(\w+)\w/\1__ /g ; 1 while s/(\w)(\w)((__ )+)/\1__ \3/' < input-text-file

Truth be told, this is the c__ __ __ __ __ __
I've e__ __ __ g__ __ __ __ __ to a...
1,525
Posted By CarloM
Another variation: # cat x.txt Truth be...
Another variation:
# cat x.txt
Truth be told, this is the =closest
I've =ever =gotten to a =college =graduation.
# awk '{for (i=1;i<=NF;i++) { if ($i ~ /^=/) { $i=substr($i,2); gsub...
1,525
Posted By ahamed101
Try this... #Variation 1 awk '{...
Try this...

#Variation 1
awk '{ for(i=1;i<=NF;i++) {
if($i~"=") {
l=length($i)-1
if($i~"[\\.,]$"){
...
3,852
Posted By vgersh99
I think you want something like this: nawk...
I think you want something like this:

nawk '/=/{for(i=1;i<=NF;i++) if ($i ~/^=/) $i=("_______[" ++count "]" FS substr($i,2))}1' myFile
3,852
Posted By agama
A small awk script to preprocess your input: ...
A small awk script to preprocess your input:


awk '
/=/ {
for( i = 1; i <= NF; i++ )
{
if( substr( $(i), 1, 1 ) == "=" )
$(i) = "__________["...
Showing results 1 to 5 of 5

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