Visitors To This Post

Search This Blog

Thursday, August 15, 2019

Linux Date-Time Shell Script Syntax

Linux Date-Time Shell Script Syntax

, , , ,

How do I format the date to display on the screen on for my shell scripts as per my requirements on Linux or Unix like operating systems?

You need to use the standard date command to format date or time in Linux or Unix shell scripts. You can use the same command with the shell script. This page shows how to format date in Linux or Unix-based system.

Linux Syntax Format Date Display On Screen

The syntax is as follows for the GNU/date and BSD/date command:
date +FORMAT
date +"%FORMAT"
date +"%FORMAT%FORMAT"
date +"%FORMAT-%FORMAT"
An operand with a leading plus (+) sign signals a user-defined format string which specifies the format in which to display the date and time. The following examples are tested on GNU/Linux, Apple OS X Unix, and FreeBSD unix operating system.

Task: Display date in mm-dd-yy format

Open a terminal and type the following date command:
$ date +"%m-%d-%y"
Sample outputs:
02-27-07
To turn on 4 digit year display:
$ date +"%m-%d-%Y"
Just display date as mm/dd/yy format:
$ date +"%D"

Task: Display time only

Type the following command:
$ date +"%T"
Sample outputs:
19:55:04
To display locale’s 12-hour clock time, enter:
$ date +"%r"
Sample outputs:
07:56:05 PM
To display time in HH:MM format, type:
$ date +"%H-%M"
Sample outputs:
00-50

How-To save time/date format in shell variables?

Simply type the following command at the shell prompt:
$ NOW=$(date +"%m-%d-%Y")
To display a variable use echo / printf command:
$ echo $NOW

A sample shell script

#!/bin/bash
NOW=$(date +"%m-%d-%Y")
FILE="backup.$NOW.tar.gz"
echo "Backing up data to /nas42/backup.$NOW.tar.gz file, please wait..."
# rest of script
# tar xcvf /nas42/backup.$NOW.tar.gz /home/ /etc/ /var

A complete list of FORMAT control characters supported by the GNU/date command

FORMAT controls the output. It can be the combination of any one of the following:
%FORMAT String
Description
%%
a literal %
%a
locale’s abbreviated weekday name (e.g., Sun)
%A
locale’s full weekday name (e.g., Sunday)
%b
locale’s abbreviated month name (e.g., Jan)
%B
locale’s full month name (e.g., January)
%c
locale’s date and time (e.g., Thu Mar 3 23:05:25 2005)
%C
century; like %Y, except omit last two digits (e.g., 21)
%d
day of month (e.g, 01)
%D
date; same as %m/%d/%y
%e
day of month, space padded; same as %_d
%F
full date; same as %Y-%m-%d
%g
last two digits of year of ISO week number (see %G)
%G
year of ISO week number (see %V); normally useful only with %V
%h
same as %b
%H
hour (00..23)
%I
hour (01..12)
%j
day of year (001..366)
%k
hour ( 0..23)
%l
hour ( 1..12)
%m
month (01..12)
%M
minute (00..59)
%n
a newline
%N
nanoseconds (000000000..999999999)
%p
locale’s equivalent of either AM or PM; blank if not known
%P
like %p, but lower case
%r
locale’s 12-hour clock time (e.g., 11:11:04 PM)
%R
24-hour hour and minute; same as %H:%M
%s
seconds since 1970-01-01 00:00:00 UTC
%S
second (00..60)
%t
a tab
%T
time; same as %H:%M:%S
%u
day of week (1..7); 1 is Monday
%U
week number of year, with Sunday as first day of week (00..53)
%V
ISO week number, with Monday as first day of week (01..53)
%w
day of week (0..6); 0 is Sunday
%W
week number of year, with Monday as first day of week (00..53)
%x
locale’s date representation (e.g., 12/31/99)
%X
locale’s time representation (e.g., 23:13:48)
%y
last two digits of year (00..99)
%Y
year
%z
+hhmm numeric timezone (e.g., -0400)
%:z
+hh:mm numeric timezone (e.g., -04:00)
%::z
+hh:mm:ss numeric time zone (e.g., -04:00:00)
%:::z
numeric time zone with : to necessary precision (e.g., -04, +05:30)
%Z
alphabetic time zone abbreviation (e.g., EDT)

A complete list of FORMAT control characters supported by the BSD/date command

The following works on Apple OS X, FreeBSD and BSD version of the date command:
%A
is replaced by national representation of the full weekday name.
%a
is replaced by national representation of the abbreviated weekday name.
%B
is replaced by national representation of the full month name.
%b
is replaced by national representation of the abbreviated month name.
%C
is replaced by (year / 100) as decimal number; single digits are preceded by a zero.
%c
is replaced by national representation of time and date.
%D
is equivalent to “%m/%d/%y”.
%d
is replaced by the day of the month as a decimal number (01-31).
%E* %O*
POSIX locale extensions. The sequences %Ec %EC %Ex %EX %Ey %EY %Od %Oe %OH %OI %Om %OM %OS %Ou %OU %OV %Ow %OW %Oy are supposed to provide alternate representations.
Additionally %OB implemented to represent alternative months names (used standalone, without day mentioned).
%e
is replaced by the day of the month as a decimal number (1-31); single digits are preceded by a blank.
%G
is replaced by a year as a decimal number with century. This year is the one that contains the greater part of the week (Monday as the first day of the week).
%g
is replaced by the same year as in “%G”, but as a decimal number without century (00-99).
%H
is replaced by the hour (24-hour clock) as a decimal number (00-23).
%h
the same as %b.
%I
is replaced by the hour (12-hour clock) as a decimal number (01-12).
%j
is replaced by the day of the year as a decimal number (001-366).
%k
is replaced by the hour (24-hour clock) as a decimal number (0-23); single digits are preceded by a blank.
%l
is replaced by the hour (12-hour clock) as a decimal number (1-12); single digits are preceded by a blank.
%M
is replaced by the minute as a decimal number (00-59).
%m
is replaced by the month as a decimal number (01-12).
%n
is replaced by a newline.
%O*
the same as %E*.
%p
is replaced by national representation of either “ante meridiem” (a.m.) or “post meridiem” (p.m.) as appropriate.
%R
is equivalent to “%H:%M”.
%r
is equivalent to “%I:%M:%S %p”.
%S
is replaced by the second as a decimal number (00-60).
%s
is replaced by the number of seconds since the Epoch, UTC (see mktime(3)).
%T
is equivalent to “%H:%M:%S”.
%t
is replaced by a tab.
%U
is replaced by the week number of the year (Sunday as the first day of the week) as a decimal number (00-53).
%u
is replaced by the weekday (Monday as the first day of the week) as a decimal number (1-7).
%V
is replaced by the week number of the year (Monday as the first day of the week) as a decimal number (01-53). If the week containing January 1 has four or more days in the new year, then it is week 1; otherwise it is the last week of the previous year, and the next week is week 1.
%v
is equivalent to “%e-%b-%Y”.
%W
is replaced by the week number of the year (Monday as the first day of the week) as a decimal number (00-53).
%w
is replaced by the weekday (Sunday as the first day of the week) as a decimal number (0-6).
%X
is replaced by national representation of the time.
%x
is replaced by national representation of the date.
%Y
is replaced by the year with century as a decimal number.
%y
is replaced by the year without century as a decimal number (00-99).
%Z
is replaced by the time zone name.
%z
is replaced by the time zone offset from UTC; a leading plus sign stands for east of UTC, a minus sign for west of UTC, hours and minutes follow with two digits each and no delimiter between them (common form for RFC 822 date headers).
%+
is replaced by national representation of the date and time (the format is similar to that produced by date(1)).
%-*
GNU libc extension. Do not do any padding when performing numerical outputs.
%_*
GNU libc extension. Explicitly specify space for padding.
%0*
GNU libc extension. Explicitly specify zero for padding.
%%
is replaced by %.


123

Wednesday, August 14, 2019

GB/s Data rates 4 DDR, DDR2, DDR3; DDR4?



GB/s Data-Rates DDR, DDR2, DDR3;  DDR4?




Category : Specification / Capacity / Performance
DDR data transfer rates: 
DDR 266:2.1 GB/s
DDR 333:2.6 GB/s
DDR 400:3.2 GB/s

DDR2 data transfer rates: 
DDR2 533:4.2 GB/s
DDR2 667:5.3 GB/s
DDR2 800:6.4 GB/s

DDR3 data transfer rates: 
DDR3 1066:8.5 GB/s
DDR3 1333:10.6 GB/s
DDR3 1600:12.8 G MB/s
DDR3 1866:14.9 G MB/s

DDR4 data transfer rates:
DDR4 2133:17 GB/s
DDR4 2400:19.2 GB/s
DDR4 2666:21.3 GB/s
DDR4 3200:25.6 GB/s





Popular DDR3 Modules Designations:
DIMM Type
Memory Clock
I/O Bus Clock
Data Rate
Module Name
Peak Transfer Rate
DDR3-800
100 MHz
400 MHz
800 MT/s
PC-6400
6400 MB/s
DDR3-1066
133 MHz
533 MHz
1066 MT/s
PC-8500
8533 MB/s
DDR3-1333
166 MHz
666 MHz
1333 MT/s
PC-10600
10600 MB/s
DDR3-1600
200 MHz
800 MHz
1600 MT/s
PC-12800
12800 MB/s
DDR3-1866
233 MHz
933 MHz
1866 MT/s
PC-14900
14933 MB/s
DDR3-2133
266 MHz
1066 MHz
2133 MT/s
PC-17000
17066 MB/s





Friday, August 2, 2019

Stem-Cell-Isolation Home-Based-Operations


Stem-Cell-Isolation Home-Based-Operations









Stem Cell Institute is one of the world’s leading adult stem cell therapy and research centers. In close collaboration with universities and physicians world-wide, our comprehensive stem cell treatment protocols employ well-targeted combinations of allogeneic human umbilical cord stem cells and autologous bone marrow stem cells to treat diseases and conditions listed below.

We have performed over 10,000 procedures since 2006 and we are accepting patients today.

---

Christian Diaz, MD is a staff physician at the Stem Cell Institute in Panama City, Panama. In this lecture, Dr. Diaz displays several photos of the clinic and medical staff. He then delves into autism spectrum disorder by outlining currently available autism treatments. He discusses a couple scientific articles about stem cell therapy for autism including the now-recently published one from Stem Cell Institute. Dr. Diaz describes the 5-day autism treatment protocol in Panama. He then moves on to follow-up results garnered from our patient registry. These results include ATEC scores and adverse events. Dr. Diaz does the same for multiple sclerosis treatments: scientific article reviews including the MS clinical trial that was conducted at Stem Cell Institute, MS treatment protocol at our clinic, and follow-up data including efficacy measurements and adverse events.

The Stem Cell Institute YouTube Site, here...






About Neil H. Riordan, PA, PhD
Neil H. Riordan, PA, PhD

Neil Riordan, PA, PhD is one of the early pioneers and experts in applied stem cell research. Dr. Riordan founded publicly traded company Medistem Laboratories (later Medistem Inc.) which was acquired by Intrexon in 2013



He is the founder and chairman of Medistem Panama, Inc., a leading stem cell laboratory and research facility located in the Technology Park of the prestigious City of Knowledge in Panama City, Panama. Medistem Panama (est. 2007) is at the forefront of research on the effects of adult stem cells on the course of several chronic diseases and conditions. The stem cell laboratory at Medistem Panama is fully licensed by the Ministry of Health of Panama.

Human umbilical cord tissue-derived mesenchymal stem cells (hUCT-MSCs) that were isolated and grown at Medistem Panama to create master cell banks are currently being used in the United States. These cells serve as the starting material for cellular products used in MSC clinical trials for two Duchenne’s muscular dystrophy patients under US FDA’s designation of Investigational New Drug (IND) for single patient compassionate use. (IND 16026 DMD Single Patient) These trials are the first in the United States to use hUCT-MSCs. Translational Biosciences, a fully-owned subsidiary of Medistem Panama is currently conducting phase I/II clinical trials for multiple sclerosis, autism and rheumatoid arthritis.

Dr. Riordan is founder, chairman and chief science officer of the Stem Cell Institute in Panama, which specializes in the treatment of human diseases and conditions with adult stem cells, primarily human umbilical cord tissue-derived mesenchymal stem cells. Established in 2007, Stem Cell Institute is one of the oldest, most well-known and well-respected stem cell therapy clinics in the world.

He is co-founder and chief science officer of the Riordan Medical Institute (RMI). Located in the Dallas-Fort Worth area city of Southlake, Texas, RMI specializes in the treatment of orthopedic conditions with autologous bone marrow-derived stem cells combined with amniotic tissue products developed by Dr. Riordan.

He is also the founder of Aidan Products, which provides health care professionals with quality nutraceuticals. Dr. Riordan’s team developed the product Stem-Kine, the only nutritional supplement that is clinically proven to increase the amount of circulating stem cells in the body for an extended period of time. Stem-Kine is currently sold in 35 countries.

Dr. Riordan has published more than 70 scientific articles in international peer-reviewed journals. In the stem cell arena, his colleagues and he have published more than 20 articles on multiple sclerosis, spinal cord injury, heart failure, rheumatoid arthritis, Duchenne muscular dystrophy, autism, and Charcot-Marie-Tooth syndrome. In 2007, Dr. Riordan’s research team was the first to discover and document the existence of mesenchymal-like stem cells in menstrual blood. For this discovery, his team was honored with the “Medical Article of the Year Award” from Biomed Central. Other notable journals in which Dr. Riordan has published articles include the British Journal of Cancer, Cellular Immunology, Journal of Immunotherapy, and Translational Medicine.

In addition to his scientific journal publications, Dr. Riordan has authored two books about mesenchymal stem cell therapy: Stem Cell Therapy: A Rising Tide: How Stem Cells Are Disrupting Medicine and Transforming Lives and MSC (Mesenchymal Stem Cells): Clinical Evidence Leading Medicine’s Next Frontier. Dr. Riordan has also written two scientific book chapters on the use of non-controversial stem cells from placenta and umbilical cord.

Dr. Riordan is an established inventor. He is the inventor or co-inventor on more than 25 patent families, including 11 issued patents. His team collaborates with a number of universities and institutions, including National Institutes of Health, Indiana University, University of California, San Diego, University of Utah, University of Western Ontario, and University of Nebraska.

He has made a number of novel discoveries in the field of cancer research since the mid-1990s when he collaborated with his father, Dr. Hugh Riordan, on the effects of high-dose intravenous vitamin C on cancer cells and the tumor microenvironment. This pioneering study on vitamin C’s preferential toxicity to cancer cells notably led to a 1997 patent for the treatment of cancer with vitamin C. In 2010, Dr. Riordan was granted an additional patent for a new cellular vaccine for cancer patients.

Neil Riordan, PA, PhD earned his Bachelor of Science at Wichita State University and graduated summa cum laude. He received his Master’s degree at the University of Nebraska Medical Center. Dr. Riordan completed his education by earning a Ph.D. in Health Sciences at Medical University of the Americas.
---
#herbs #health #vitality #wellness #wildherbs #herbalhealers #alkaline #rawfoods #onions #garlic #greenblessings #solsticebrew #gratitude #yogafest #yogafestival #livemusic #boozefreebar #herbalism