Horje
extract numners from string linux Code Example
extract numners from string linux
$ NUMBER=$(echo "I am 999 years old." | grep -o -E '[0-9]+')
$ echo $NUMBER
999
extract numners from string linux
echo 'Insert completed. 100 rows added ' | awk '{print $(NF-2)}'
Source: www.unix.com




Shell

Related
date format in linux shell script Code Example date format in linux shell script Code Example
find all files edited after date linux Code Example find all files edited after date linux Code Example
No known instance method for selector 'userAgent' Code Example No known instance method for selector 'userAgent' Code Example
how to store float values in shell script Code Example how to store float values in shell script Code Example
ubuntu macbook camera Code Example ubuntu macbook camera Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13