09-19-2012
That opens up a whole can of worms. The awk reporting language can be used to build any type of text file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello,
im a newbie. how can i input data from keyboard? thanks. (3 Replies)
Discussion started by: Jariya
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file and the contents of the file is say
World
World
World
Now i need to append some more words in each of the line and the the output of the file should like the one below
Will India win the World Cup?
Will India win the World Cup?
Will India win the... (3 Replies)
Discussion started by: preethgideon
3 Replies
3. UNIX for Dummies Questions & Answers
Hi I am very new to Unix Shell. I have a question:
How do you check the input value against a reqex?
For example using korn Shell:
echo "Please enter revision month: \c"
read revmon
if $revmon | egrep -c = '{3}{2}"'
then
echo "OK"
else
echo "PLease re-enter a valid revision... (3 Replies)
Discussion started by: bonekrusher
3 Replies
4. Shell Programming and Scripting
I got a file with contents are of the following format
...
2007-09-28 ./.passwwd1.sh.swp
2007-11-26 ./827-55.jpg
2007-09-28 ./argcheck.pl
...
I have to delete all the '-' in the "first field", ie. the date, not on the second field, which is the name of the file.
i.e.
required output
... (1 Reply)
Discussion started by: jaduks
1 Replies
5. Shell Programming and Scripting
Hi,
I have a bunch of records within a directory where each one has this form:
(example file1)
1 2 50 90 80 90 43512 98 0909 79869 -9 7878 33222 8787 9090 89898 7878 8989 7878 6767 89 89 78676 9898 000 7878 5656 5454 5454
and i want for all of these files to be... (3 Replies)
Discussion started by: amarn
3 Replies
6. Shell Programming and Scripting
HI
i have written a script to ask input from the user.
this script should promote the user for y/n input. if user enters anyother input then y/n
the script promotes him again. this below code is working fine for all the cases.
except for space and enter " if i give space and enter it is... (2 Replies)
Discussion started by: BHASKARREDDY006
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have several hundred subdirectories which contain input files for a binary executable. I need to get into each of the subdirectories, run the executable and then move to the next one and repeat the process. What is the best way to do this?
Arbitrarily my file structures look like... (3 Replies)
Discussion started by: Gussifinknottle
3 Replies
8. Shell Programming and Scripting
Hi ,
I am having a problem with my awk oneliner , which for some reason leaves the first two records
Input File
$ cat file1
A1:B1:C1:NoLimit
M1:M2:M3:Limit
A2:B2:C2,C3,C4,C5
A3:B3:C3,C4,C5,C6,C7Desired output
A1,B1,C1,NoLimit
M1,M2,M3,Limit
A2,B2,C2
,,,C3
,,,C4
,,,C5
A3,B3,C3... (5 Replies)
Discussion started by: chidori
5 Replies
9. Shell Programming and Scripting
I am trying to merge the below awk, which compares two files looking for a match in $2 and then prints the line if two conditions are meet.
awk
awk 'FNR==NR{A=$0;next} ($2 in A){if($10>30 && $11>49){print A}}' F113.txt F113_tvc.bed
This code was improved and provided by @RavinderSingh13,... (18 Replies)
Discussion started by: cmccabe
18 Replies
10. UNIX for Beginners Questions & Answers
I work at a company that uses a program written in AWK to track various data and prepare reports. Worked with this program for three years plus (the author is no longer with us) and the YTD Production report will not return a report with a date after 123119. This is a problem. Below is the (I... (3 Replies)
Discussion started by: paulgdavitt
3 Replies
LEARN ABOUT DEBIAN
sexp-conv
SEXP-CONV(1) Nettle tools SEXP-CONV(1)
NAME
sexp-conv - convert s-expression to a different encoding
SYNOPSIS
Conversion:
sexp-conv [OPTION]... < INPUT-SEXP
Fingerprinting:
sexp-conv --hash[=algorithm] [OPTION]... < INPUT-SEXP
DESCRIPTION
This manual page documents briefly the sexp-conv command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page. Instead, it has documentation in the GNU Info format; see below.
sexp-conv is a program that converts S-expressions. It automatically detects the s-expression syntax variant of the input. It is primarily
used by the `lsh' packages, which stores keys and most other objects on disk in that format, but may be of other use as well.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below. For a complete description, see the Info files.
--hash=algorithm
Output only the hash of the s-expression, using algorithm (default: sha1).
--raw-hash
Alias for --hash, for compatibility with lsh 1.x.
--once Process exactly one s-expression.
--spki-hash
Output an SPKI hash for the object. Not yet implemented.
-s, --syntax=format
Variant of S-expression to output. Valid S-expression formats are: transport, canonical (binary), advanced, and hex (same as
advanced, but numbers in hex instead of base64).
-w, --width=width
Limit output to lines of width characters (has no effect on canonical syntax). Zero means no limit.
-?, --help
Show summary of options.
-V, --version
Show version of program.
SEE ALSO
ssh-conv(1), lsh(1), lshd(8), http://theworld.com/~cme/spki.txt.
The programs are documented fully by the sexp section under the Getting Started header of the lsh info page, available via the Info system.
BUGS
This program should be documented in the nettle manual, not in the lsh manual.
AUTHOR
This manual page was originally written by Timshel Knoll <timshel@debian.org>, for the Debian GNU/Linux system (but may be used by others).
Edited by Magnus Holmgren <magnus@kibibyte.se>.
nettle 1.15 June 2007 SEXP-CONV(1)