D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
language-tools
/
Filename :
locale2papersize
back
Copy
#!/bin/sh -pe # # locale2papersize outputs the paper size "a4" or "letter" based on # the height and width in the locale that is passed as an argument. export LC_PAPER=$1 height=$( locale height ) width=$( locale width ) if [ "$height" = 279 -a "$width" = 216 ]; then size=letter else size=a4 fi echo $size