Skip to main content
deleted 2 characters in body
Source Link

[Bash]Bash + coreutils, 59 bytes

f()(sed 's/\(.\)/\1\ /g'<<<$s|grep .|sort -c$1) s=$1 f||f r 

The input string is passed as an argument.

The output is returned in the exit code (0 for truthy, 1 for falsy, as usual), as allowed by PPCG I/O methods.

[Bash] + coreutils, 59 bytes

f()(sed 's/\(.\)/\1\ /g'<<<$s|grep .|sort -c$1) s=$1 f||f r 

The input string is passed as an argument.

The output is returned in the exit code (0 for truthy, 1 for falsy, as usual), as allowed by PPCG I/O methods.

Bash + coreutils, 59 bytes

f()(sed 's/\(.\)/\1\ /g'<<<$s|grep .|sort -c$1) s=$1 f||f r 

The input string is passed as an argument.

The output is returned in the exit code (0 for truthy, 1 for falsy, as usual), as allowed by PPCG I/O methods.

Source Link

[Bash] + coreutils, 59 bytes

f()(sed 's/\(.\)/\1\ /g'<<<$s|grep .|sort -c$1) s=$1 f||f r 

The input string is passed as an argument.

The output is returned in the exit code (0 for truthy, 1 for falsy, as usual), as allowed by PPCG I/O methods.