How can i target punctuation marks when dealing with text

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I want to print a file like this after i saved it as file.fw
nvram set wl0.2_key4=;
nvram set wl0_wds1_ospf=;
nvram set wl0_stbc_tx=auto;
nvram set wl0_ap_isolate=0;
nvram set wl0_ampdu=auto;
nvram set wl0_gmode=1;
nvram set wl0_wme_no_ack=off;
I want to out put this file like for line back to back so i ran
grep -aoE '([a-zA-Z0-9])1,30' file.fw
And i got every word from 1 to 30 characters long so i ran
cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '
And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes
I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols
command-line text-processing grep
add a comment |Â
up vote
0
down vote
favorite
I want to print a file like this after i saved it as file.fw
nvram set wl0.2_key4=;
nvram set wl0_wds1_ospf=;
nvram set wl0_stbc_tx=auto;
nvram set wl0_ap_isolate=0;
nvram set wl0_ampdu=auto;
nvram set wl0_gmode=1;
nvram set wl0_wme_no_ack=off;
I want to out put this file like for line back to back so i ran
grep -aoE '([a-zA-Z0-9])1,30' file.fw
And i got every word from 1 to 30 characters long so i ran
cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '
And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes
I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols
command-line text-processing grep
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to print a file like this after i saved it as file.fw
nvram set wl0.2_key4=;
nvram set wl0_wds1_ospf=;
nvram set wl0_stbc_tx=auto;
nvram set wl0_ap_isolate=0;
nvram set wl0_ampdu=auto;
nvram set wl0_gmode=1;
nvram set wl0_wme_no_ack=off;
I want to out put this file like for line back to back so i ran
grep -aoE '([a-zA-Z0-9])1,30' file.fw
And i got every word from 1 to 30 characters long so i ran
cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '
And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes
I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols
command-line text-processing grep
I want to print a file like this after i saved it as file.fw
nvram set wl0.2_key4=;
nvram set wl0_wds1_ospf=;
nvram set wl0_stbc_tx=auto;
nvram set wl0_ap_isolate=0;
nvram set wl0_ampdu=auto;
nvram set wl0_gmode=1;
nvram set wl0_wme_no_ack=off;
I want to out put this file like for line back to back so i ran
grep -aoE '([a-zA-Z0-9])1,30' file.fw
And i got every word from 1 to 30 characters long so i ran
cat file | grep -aoE '([a-zA-Z0-9])1,30' | tr 'n' ' '
And i got an output which was words back to back with a space, How can i print this file to ONLY get these special wildcards "<>?/|[]+=_-)(*&^%$#@!`~" with my text output and not the unusual symbols ��� or the hexadecimal boxes
I was looking into the [[:punct:]] option, but that also prints the strange symbols, Is there a way to target certain symbols
command-line text-processing grep
edited May 29 at 9:36
asked May 29 at 9:08
hello moto
3851315
3851315
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041500%2fhow-can-i-target-punctuation-marks-when-dealing-with-text%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password