This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# parsrc.sh | |
# CSV(Excel形式(RFC 4180):ダブルクォーテーションのエスケープは"")から | |
# 行番号列番号インデックス付き値(line field indexed value)テキストへの正規化 | |
# (例) | |
# aaa,"b""bb","c | |
# cc",d d | |
# "f,f" | |
# ↓ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# This source code should be viewed and run with | |
# more than 58 chars width and more than 100 lines height. | |
# 10 20 30 40 50 | |
# -------+---------+---------+---------+---------+-------| | |
# | |
# The original code is exposed at | |
# http://www.slideshare.net/mametter/ruby-2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# FSED : flexible sed (looks like the fgrep) | |
# | |
# Written by Rich Mikan (richmikan[at]richlab.org) at 2014/04/08 | |
# | |
# Usage : fsed <pattern_str> <substitute_str> <file> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# APALOGNORM : a normalizer for logs of the Apache combined format | |
# | |
# Written by Rich Mikan (richmikan[at]richlab.org) at 2014/01/04 | |
# | |
# Usage : apalognorm [-s string] <logfile> | |
# <logfile> should be written with Apache combine format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# MKSTEMP : A wrapper of mktemp(1) to behave as a equivalent of mkstemp(1) | |
# | |
# Written by Rich Mikan (richmikan[at]richlab.org) at 2013/11/09 | |
# | |
# Usage : mkstemp [mktemp(1)options] <template> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# GZPIPE - Making a named pipe behave as a gzipping filter | |
# | |
# USAGE: gzpipe [-t timeout] <named_pipe_to_use> [output_file] | |
# | |
# 1) create the named pipe <named_pipe_to_use> when unexists | |
# 2) read stream data from the named pipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# EXFLOCK : A file lock command that you can use like flock(2) | |
# | |
# Usage : exflock <seconds> <file> [maxlifetime] | |
# <seconds> ...... maximum waiting time to succeed locking | |
# <file> ......... the path of the file you want to lock | |
# [maxlifetime] .. the maximum life of the locking process (sec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# UTCONV - UNIX time and Real DateTime Converter | |
# | |
# USAGE: utconv [datetime_text_or_file] # for Real-datetime -> Unixtime | |
# utconv -r [unixtime_text_or_file] # for Unixtime -> Real-datetime | |
# | |
# * utconv reads stdin when <datetime_text_or_file> is not given. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
###################################################################### | |
# | |
# SESSIONF - Session File Manager (useful for CGI scripts) | |
# | |
# USAGE: sessionf <subcommand> [argument] ... | |
# | |
# * List of Subcommands: | |
# create ..... $0 create at=<template_path> |
OlderNewer