07-07-2011
hi, i tried the code and it works. thanks a lot!
lin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a program that calculates shipping cost for an item and prints the information to a file. I cannot seem to get the lines to print with equal spacing in columns.
I need data like this to be aligned into columns:
Optical Mouse 5 A $25
Compaq Presario 3... (2 Replies)
Discussion started by: turbulence
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I would like to know given that I have 3 columns.
Let say I have first 3 columns to do operation and these operation output is printed out each line by line using AWK and associative array.Currently in the output file, I do a sort by -r for the operation output.
The problem comes to... (1 Reply)
Discussion started by: ahjiefreak
1 Replies
3. AIX
Aix 5.2
If you install Aix and accept the default settings for the various filesystems how much space is allocated for /usr?
I've just accepted the default settings for the install prompts and no third party apps have been installed.
TIA (3 Replies)
Discussion started by: Westy564
3 Replies
4. Shell Programming and Scripting
Hi all, i am writting a script to fix some problems we have with data that we need that contains 1000s of records. I have a text file with 3 columns of data. The problem is there should be a space between the end of the first column and the start of the second column. The majority of the data is... (7 Replies)
Discussion started by: borderblaster
7 Replies
5. Shell Programming and Scripting
Hi all,
I have created a script which adding two columns and removing two columns for all files.
Filename: Cust_information_1200_201010.txt
Source Data:
"1","Cust information","123","106001","street","1-203 high street"
"1","Cust information","124","105001","street","1-203 high street"
... (0 Replies)
Discussion started by: onesuri
0 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I need your help in sorting some columns in a syslog report.
The command is:
for messages in `cat syslog_message_list.txt`; do grep $messages syslog.`date +%d%m%y`.log | \
tr -s " " | cut -d" " -f4,9- | sort| uniq -c >> syslog.`date +%d%m%y`.report; done
The output is:
1... (4 Replies)
Discussion started by: wthomas
4 Replies
7. Shell Programming and Scripting
Hello
i have a text file like this:
1 AB AC AD EE
2 WE TR YT WW
3 AS UY RF YT
the file is bigger , but that's an example of the data
what i want to do is to merge all columns together except the first one,
it will become like this :
1 ABACADEE
2 WETRYTWW
3 ASUYRFYT (8 Replies)
Discussion started by: shelladdict
8 Replies
8. Shell Programming and Scripting
Hi,
My input is in the following way
a
b
c
d
e
f
I would like to have it printed as
a b c d e f
Any awk scripts are appreciated. (1 Reply)
Discussion started by: jacobs.smith
1 Replies
9. UNIX for Advanced & Expert Users
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
10. Shell Programming and Scripting
Hi All,
Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them.
my input would be users list,directory path and the file size (say 5 GB)
... (11 Replies)
Discussion started by: anman0523
11 Replies
LEARN ABOUT DEBIAN
sgmlcheck
SGMLCHECK(1) General Commands Manual SGMLCHECK(1)
NAME
sgmlcheck - check the syntax of an LinuxDoc DTD sgml source file
SYNOPSIS
sgmlcheck file[.sgml]
DESCRIPTION
sgmlcheck is an old and obsoleted form of the SGML source checker command of LinuxDoc-Tools. It is recommended to switch the new form lin-
uxdoc -B check now. It runs an SGML parse on the specified document source. Any errors are reported to standard output. No formatted
version of the source is produced.
Note that sgmlcheck preprocesses the LinuxDoc DTD SGML source, doing the conditionalization described by any <#if></#if> and
<#unless></#unless> tags. Document sources containing these tags will confuse a standalone SGML parser.
OPTIONS
None. The generic options described in linuxdoc(1) are accepted, but have no effect (except for -D).
FILES
Many files and executables in /usr/share/linuxdoc-tools and /usr/bin are used.
BUGS
None known.
AUTHOR
Originally written by Cees de Groot <cg@cdegroot.com> as sgmlcheck for SGML-Tools v1. Currently maintained by Taketoshi Sano
<sano@debian.org> for Linuxdoc-Tools.
SEE ALSO
linuxdoc(1), sgml2html(1), sgml2info(1), sgml2latex(1), sgml2rtf(1), sgml2txt(1).
16 May 2000 SGMLCHECK(1)