Posts

Sleep disorder

Image
Sleep disorder Pediatric polysomnography Specialty Psychiatry, Sleep medicine A sleep disorder , or somnipathy , is a medical disorder of the sleep patterns of a person or animal. Some sleep disorders are serious enough to interfere with normal physical, mental, social and emotional functioning. Polysomnography and actigraphy are tests commonly ordered for some sleep disorders. Disruptions in sleep can be caused by a variety of issues, from teeth grinding (bruxism) to night terrors. When a person suffers from difficulty falling asleep and/or staying asleep with no obvious cause, it is referred to as insomnia. [1] Sleep disorders are broadly classified into dyssomnias, parasomnias, circadian rhythm sleep disorders involving the timing of sleep, and other disorders including ones caused by medical or psychological conditions and sleeping sickness. Some common sleep disorders include sleep apnea (stops in breathing during sleep), narcolepsy and hypersomnia (excessive sleepiness at inappro...

Pad a number with a zero

Image
Clash Royale CLAN TAG #URR8PPP up vote 5 down vote favorite 2 I'm trying to pad zero to a number a=010 printf "%04d" $a 0008 I need the "output" as "0010" it's converting the value. and even tried with typeset a=010 typeset -RZ2 a echo $a when I use the same in my script I got the following error: Invalid -R option printf typeset share | improve this question edited Nov 20 at 22:39 Rui F Ribeiro 38.2k 14 75 125 asked Aug 26 '13 at 7:05 user43067 57 2 3 5 the problem in with the input, not the output. – ctrl-alt-delor Aug 26 '13 at 12:47 add a comment  |  up vote 5 down vote favorite 2 I'm trying to pad zero to a number a=010 printf "%04d" $a 0008 I need the "output" as "0010" it's converting the value. and even tried with typeset a=010 typeset -RZ2 a echo $a when I use the same in my script I got the following error...