Hi,
I trying to find the solution for writing the programming in unix by shell programming for sorting thr string in alphabetical order.
I getting diffculty in that ,, so i want to find out the solution for that
Please do needful
Thanks
Bhagyesh (1 Reply)
Hi everyone!
I am new to the forum and have recently started working with Linux.
Quick question, I want a user list in alphabetical order as the output of a shell script.
Who can help me!?
Thanks!
From the netherlands ;) (5 Replies)
I've looking over a script for work and I've had a problem with the script not listing the files in alphabetical order. To look up PIDs for apps, it would be beneficial to have them listed in that order. Here is what I've been reviewing.
#!/usr/bin/perl
$str = sprintf "%4s %-40s", "PID",... (7 Replies)
Hi All,
I have one file containing thousands of table names in single column. Now I want that file split into multiple files e.g one file containing table names starting from A, other containing all tables starting from B...and so on..till Z.
I tried below but it did not work.
for i in... (6 Replies)
I have an interactive script which works terrific at processing a folder of unsorted files into new directories.
I am wondering how I could modify my script so that( upon execution) it provides an additional labelled summary file on my desktop that lists all of the files in each directory that... (4 Replies)
Discussion started by: Braveheart
4 Replies
LEARN ABOUT PLAN9
twig
TWIG(1) General Commands Manual TWIG(1)NAME
twig - tree-manipulation language
SYNOPSIS
twig [ -sASC ] [ -w suffix ] file.mt
DESCRIPTION
Twig converts a tree-specification scheme consisting of pattern-action rules with associated costs into C functions that can be called to
manipulate input trees. The C functions first find a minimum-cost covering of an input tree using a dynamic programming algorithm and then
execute the actions associated with the patterns used in the covering. The tree-specification scheme may allow several coverings for an
input tree, but the dynamic programming algorithm resolves any ambiguities by selecting a cheapest covering.
The input file containing the tree-specification scheme must have the suffix Twig produces two output files: walker.c, which becomes the
source file for the tree matcher, and symbols.h, which contains the definitions for the node and label symbols used in the source file.
To build walker.c, twig uses an internal template file, by default one appropriate for use with fprintf(2).
The options are
-A Use a template file for ANSI/POSIX source files.
-C Use a template file for files that use libc's print(2) routines.
-S Use a template file for files that use fprintf(2).
-s Do not produce a symbols.h file.
-w suffix Use the template file /sys/lib/twig/walker.suffix.
FILES
/sys/lib/twig
System area for template files.
SOURCE
/sys/src/cmd/twig
SEE ALSO yacc(1)
S. W. K. Tjiang, ``The Twig Reference Manual'', Computing Science Technical Report No. 120, AT&T Bell Laboratories, Murray Hill, N.J.
A. V. Aho, M. Ganapathi, and S. W. K. Tjiang, ``Code generation using tree matching and dynamic programming.''
BUGS
When tree matching fails, the debugging output is cryptic.
TWIG(1)