10-27-2009
Rewrite the ls code to your needs or use awk to reformat the output. In Unix/Linux there is usually no marking of locked files by listing them afaik.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Have the following code(1) producing the results(2 & 3).
Would like to know if there is a way to format the two reports created in a similar fashion.
IE - The first is formatted nicely as a result of the echo "$xmpbdate $xavgs" >> $xmpbrpt
However when I attempt to do the same on... (7 Replies)
Discussion started by: Cameron
7 Replies
2. Shell Programming and Scripting
Hi need some advice..
#grep -i hostname test.csv
(gives the below output)
HOSTNAME,name,host_test,,,,,,,,
Now I need to format the above output as below.
HOSTNAME:
name=host_test
Any easy way of doing this using awk or sed or printf? (4 Replies)
Discussion started by: balaji_prk
4 Replies
3. Shell Programming and Scripting
Hi
I tried running the below
awk 'BEGIN { printf ("%s %-51s %s %-7s %s",$var1,$var2,$var3,$var4,$var5)}'
from the command prompt and it is not working.
Getting the error
awk: Field $() is not correct.
The source line number is 1.
Actually my requirement is to form a string based on... (6 Replies)
Discussion started by: dhanamurthy
6 Replies
4. Shell Programming and Scripting
I am using find and ls to search for "warez" files on my server.
find /home/ -regex ".*\.\(avi\|mp3\|mpeg\|mpg\|iso\)" -print0 | xargs -0 ls -oh
This command produces this:
-rw-r--r-- 1 1000 3.2M Feb 18 2009 /home/user/public_html/lupus.mp3
I want to only get this
3.2M... (4 Replies)
Discussion started by: bonrad
4 Replies
5. Shell Programming and Scripting
Sorry for being a n00b, but I'm having a lot more trouble than I should with formatting the output to the program I finally completed. I'm basically looking for the linux equivalent to setw( ) from c++ so that I can print things in columns like this (but without the underlines lol):
MISSPELLED: ... (4 Replies)
Discussion started by: aikaterinimak
4 Replies
6. Shell Programming and Scripting
Hi Experts,
I have to create a report for certain audit and my output looks as follows
I m trying to format my output to look like
Any inputs would be highly appreciated
Thanks
Syed (5 Replies)
Discussion started by: maverick_here
5 Replies
7. Shell Programming and Scripting
Hi Guys
I need help removing some lines from output i am receiving from a shell script.
Here is the output:
http://i52.tinypic.com/10z0fut.png
I am trying to remove the output that i have circled.
. ${EDW}/extracts/bin/extracts_setup2.sh
. ${EDW}/extracts/extracts.conf
... (7 Replies)
Discussion started by: mooey1232003
7 Replies
8. Shell Programming and Scripting
Hi,
I have a file which contents entries in this form.
Only in /data4/temp abc.000001
Only in /data4/temp abc.000003
Only in /data4/temp abc.000012
Only in /data4/temp abc.000120
Only in /data4/temp abc.000133
Only in /data4/temp abc.001444
i want to read line by line and format... (2 Replies)
Discussion started by: arijitsaha
2 Replies
9. AIX
I am using FORTRAN 90 on AIX 5.3 and need to output my data to a tab-delimited file. It must have actual tabs, and I cannot figure out a way to make it work. The resulting file will be imported into another application (quickbooks) as an .iif file....for some reason, it needs the tabs; spaces do... (2 Replies)
Discussion started by: KathyB148
2 Replies
10. Shell Programming and Scripting
Hi,
I am trying to use printf command and format certain output in a specific format as under:
While the left side (upto |) of the above format is part of a fixed header function, the right side is where i am expecting data to be printed. However, as seen, Row1 value is reflecting on last... (5 Replies)
Discussion started by: EmbedUX
5 Replies
LEARN ABOUT OPENDARWIN
xmlcatalog
XMLCATALOG(1) xmlcatalog Manual XMLCATALOG(1)
NAME
xmlcatalog - Command line tool to parse and manipulate XML or SGML catalog files.
SYNOPSIS
xmlcatalog [--shell | --create | --add type orig replace
| --del values | --noout | --verbose] [catalogfile]
[entities]
INTRODUCTION
xmlcatalog is a command line application allowing users to monitor and manipulate XML and SGML catalogs. It is included in libxml2.
Its functions can be invoked from a single command from the command line, or it can perform multiple functions in interactive mode. It can
operate on both XML and SGML files.
COMMAND LINE OPTIONS
--shell filename
Run a shell allowing interactive queries on catalog file filename.
--create filename
Create a new XML catalog. Outputs to stdout, ignoring filename unless --noout is used, in which case it creates a new catalog file
filename.
--add 'type' 'orig' 'replace' filename
Add an entry to catalog file filename. type indicates the type of entry. Possible types are 'public', 'system', 'rewriteSystem',
'delegatePublic', 'delegateSystem'amd 'rewriteURI'. 'orig' is the original reference to be replaced, and 'replace' is the URI of the
replacement entity to be used. The --add option will not overwrite filename, outputing to stdout, unless --noout is used. The --add
will always take three parameters even if some of the XML catalog constructs will have only a single argument.
If the --add option is used following the --sgml option, only a single argument, a filename, is used. This is used to add the name
of a catalog file to an SGML supercatalog, a file that contains references to other included SGML catalog files.
--del 'values' filename
Remove entries from the catalog file filename matching 'values'. The --del option will not overwrite filename, outputing to stdout,
unless --noout is used.
--noout
Save output to the named file rather than outputing to stdout.
--sgml Uses SGML Super catalogs for --add and --del options
-v or --verbose
output debugging information.
SHELL COMMANDS
Invoking xmlcatalog with the --shell filename option opens a command line shell allowing interactive access to the catalog file identified
by filename. Invoking the shell provides a command line prompt after which commands can be entered.
public 'PublicID'
Execute a public identifier lookup of the catalog entry for 'PublicID'. The corresponding entry will be output to the command line.
system 'SystemID'
Execute a public identifier lookup of the catalog entry for 'SystemID'. The corresponding entry will be output to the command line.
add 'type' 'orig' 'replace'
Add an entry to the catalog file. type indicates the type of entry. Possible types are 'public', 'system', 'rewriteSystem', 'dele-
gatePublic' and 'delegateSystem'. 'orig' is the original reference to be replaced, and 'replace' is the URI of the replacement
entity to be used.
del 'values'
Remove the catalog entry corresponding to 'values'.
dump Print the current catalog.
debug Print debugging statements showing the steps xmlcatalog is executing.
quiet Stop printing debugging statements.
exit Quit the shell.
RETURN VALUES
xmlcatalog's return codes provide information that can be used when calling it from scripts.
0: normal
1: Failed to remove an entry from the catalog
2: Failed to save to the catalog, check file permissions
3: Failed to add an entry to the catalog
4: Failed to lookup and entry in the catalog
REFERENCES
libxml web page: http://www.xmlsoft.org/
libxml catalog support web page:: http://www.xmlsoft.org/catalog.html
James Clark's SGML catalog page:: http://www.jclark.com/sp/catalog.htm
OASIS XML catalog specification: : http://www.oasis-open.org/committees/entity/spec.html
AUTHOR
John Fleck.
XMLCATALOG(1)