Skip to main content
Commonmark migration
Source Link

#awk - 27

awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR-1}'

NR-1 is needed to print (char)0 for NR==1.    :-(

And why don't we have a no command? That's kinda mean!

#awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR-1}'

NR-1 is needed to print (char)0 for NR==1.    :-(

And why don't we have a no command? That's kinda mean!

awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR-1}'

NR-1 is needed to print (char)0 for NR==1.    :-(

And why don't we have a no command? That's kinda mean!

added 116 characters in body
Source Link
user19214
user19214

#awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR-1}'

NR-1 is needed to print (char)0 for NR==1.    :-(

And why don't we have a no command? That's kinda mean!

#awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR}'

#awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR-1}'

NR-1 is needed to print (char)0 for NR==1.    :-(

And why don't we have a no command? That's kinda mean!

Source Link
user19214
user19214

#awk - 27

{while(i<$0)printf"%c",i++}

To give the parameter on stdin run it like:

awk '{while(i<$0)printf"%c",i++}' <<<96

Just for fun: The "think positive version" starting with a definitive yes:

yes|head -96|awk '{printf"%c",NR}'