#!/bin/bash
#to be called,use “source string.sh” or “. string.sh”
#计算字符串长度
function strlen()
{
}
#获取子串
function substr()
{
}
#查找子串位置
#to get result,use it like this: res=`strpos ‘abcd1234′ ’123′`
function strpos()
{
}
#字符串替换
function str_replace()
{
}
#取给定时间的前一天
#get the date before $1
function get_day_before()
{
}
#删除空行
function delete_empty_line()
{
}
#urlendcode
function urlencode()
{
}