Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash "read -p"

#!/bin/bash
# Code for OSX 10.13.5. default UNICODE encoding.
echo""
echo "The default UTF-8..."
locale
echo""
echo "Change to 8 bit ASCII only..."
LANG="en_GB.US-ASCII"
export LANG="en_GB.US-ASCII"
locale
echo ""
for N in {0..255}
do
	printf 'x'$( printf "%02x" "$N" )
done
echo ""
Source by www.unix.com #
 
PREVIOUS NEXT
Tagged: #bash
ADD COMMENT
Topic
Name
5+1 =