Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Cleaner display for 'defaults domains' command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cleaner display for 'defaults domains' command
Authored by: discordantus on Apr 28, '03 06:23:57PM
or in perl:

defaults domains | perl -e 'while(<STDIN>){~s/,\s*/\n/ g;print}'

this will remove spaces at the beginning.

[ Reply to This | # ]

Cleaner display for 'defaults domains' command
Authored by: meELOISE on Apr 29, '03 01:05:00PM
not that perl is probably the way to go here, but to clean up the specials and shorten a bit:

defaults domains | perl -pe 's/,\s*/\n/g'

[ Reply to This | # ]

Cleaner display for 'defaults domains' command
Authored by: meELOISE on Apr 29, '03 01:11:42PM
hmm, how to get the backslashes? The showed up in the preview...:

code, single slash: defaults domains | perl -pe 's/,\s*/ \n/g'

code, double slash: defaults domains | perl -pe 's/,\s*/ \n/g'

pre, single slash:

defaults domains | perl -pe 's/,\s*/\n/
g'

pre, double slash:

defaults domains | perl -pe 's/,\s*/
\n/g'


[ Reply to This | # ]