[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
function with description
From: |
lisa-asket |
Subject: |
function with description |
Date: |
Tue, 29 Jun 2021 00:29:01 +0200 (CEST) |
Have written the following function and would like to be able to print a
description
similar to the docstring in elisp.
Perhaps I can call the function this way `headrc h`
headrc ()
{
# Prints first set of lines from named files.
# $1 NUM Number of lines to print
# $2 DIR Directory
num=$1
dir=$2
find "$dir" \( -name \*.org -o -name \*.texi \) \
| xargs head -n "$num";
}
- function with description,
lisa-asket <=