09-01-2008
What do you think >&1 stands for?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys,
I do have a script that runs to take the server out from network, after running the script it is writing the new log file{outFile} in to directory . Now what i need is my script should tail the last modified file{outFile} & search the string {Server Status} ans should echo the same at the... (0 Replies)
Discussion started by: raghunsi
0 Replies
2. UNIX for Dummies Questions & Answers
:confused:Hi
This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons.
I get a whole bunch of errors when starting the service too:
Tue Feb 23 14:29:45 2010
... (1 Reply)
Discussion started by: wbdevilliers
1 Replies
3. Shell Programming and Scripting
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Discussion started by: mlpathir
3 Replies
4. Shell Programming and Scripting
Hi All,
I have a very basic query for 'echo $$' command.
When I am executing echo $$ on console then it is giving different output than the execution of echo $$ in a script.
Console Output:
-------------------------
bash-3.2$ echo $$
15610
bash-3.2$
In Script:... (3 Replies)
Discussion started by: manishdivs
3 Replies
5. Shell Programming and Scripting
Hi,
I'm having an issue with echo again. I keep getting errors and no file content with these commands in a script.
---------------------------------------------------
#!/bin/bash
WEBSITE=http://www.google.com
touch test1.txt
echo "replace("<body>","<body><iframe... (2 Replies)
Discussion started by: digitalviking
2 Replies
6. Shell Programming and Scripting
I do a lot of TSM work and I embarked on what I thought would be an easy task, and I'd be very happy for any input to save the pounding my keyboard is receiving :]
By default, the output of TSM's console has no timestamping, making it hard to sort through accurately.
This puts my console into... (5 Replies)
Discussion started by: Vryali
5 Replies
7. Shell Programming and Scripting
Hello all,
I wrote this command line for some calculation on my given input files based on another input file which is a txt file.
while read BAM REGION; do samtools view $BAM $REGION | awk '{if ($2==0) print $0}' | wc -l >>log.txt; echo "$REGION"; done >> log.txt <regions.txt
It takes... (4 Replies)
Discussion started by: @man
4 Replies
8. Shell Programming and Scripting
Hello ,
I have comma delimited file with over 20 fileds that i need to do some validations on. I have to check if certain fields are null and then write the line containing the null field into a new file and then delete the line from the current file.
Can someone tell me how i could go... (2 Replies)
Discussion started by: goddevil
2 Replies
9. Shell Programming and Scripting
Hi All,
I have written one script in which am writting the result to the log file.
I want to display the results on the console also
if ;
then
echo "$result doesnot match with the host file">>InputHostsFileErrors.txt
else
echo "$result input matches with the host... (7 Replies)
Discussion started by: sharsour
7 Replies
10. Shell Programming and Scripting
I've got a file that looks like this (spaces before first entries intentional):
12345650-000005000GL140227 ANNUAL HELC FEE EN
22345650-000005000GL140227 ANNUAL HELC FEE EN
32345650-000005000GL140227 ANNUAL HELC FEE EN
I want to read through the file line by line,... (6 Replies)
Discussion started by: Scottie1954
6 Replies
LEARN ABOUT MOJAVE
doctoc_lang_syntax
doctoc_lang_syntax(n) Documentation tools doctoc_lang_syntax(n)
__________________________________________________________________________________________________________________________________________________
NAME
doctoc_lang_syntax - doctoc language syntax
DESCRIPTION
This document contains the formal specification of the syntax of the doctoc markup language, version 1.1 in Backus-Naur-Form. This document
is intended to be a reference, complementing the doctoc language command reference. A beginner should read the much more informally writ-
ten doctoc language introduction first before trying to understand either this document or the command reference.
FUNDAMENTALS
In the broadest terms possible the doctoc markup language is like SGML and similar languages. A document written in this language consists
primarily of markup commands, with text embedded into it at some places.
Each markup command is a just Tcl command surrounded by a matching pair of [ and ]. Which commands are available, and their arguments, i.e.
syntax is specified in the doctoc language command reference.
In this document we specify first the lexeme, and then the syntax, i.e. how we can mix text and markup commands with each other.
LEXICAL DEFINITIONS
In the syntax rules listed in the next section
[1] <TEXT> stands for all text except markup commands.
[2] Any XXX stands for the markup command [xxx] including its arguments. Each markup command is a Tcl command surrounded by a matching
pair of [ and ]. Inside of these delimiters the usual rules for a Tcl command apply with regard to word quotation, nested commands,
continuation lines, etc.
[3] <WHITE> stands for all text consisting only of spaces, newlines, tabulators and the comment markup command.
SYNTAX
The rules listed here specify only the syntax of doctoc documents. The lexical level of the language was covered in the previous section.
Regarding the syntax of the (E)BNF itself
[1] The construct { X } stands for zero or more occurrences of X.
[2] The construct [ X ] stands for zero or one occurrence of X.
The syntax:
toc = defs
TOC_BEGIN
contents
TOC_END
{ <WHITE> }
defs = { INCLUDE | VSET | <WHITE> }
contents = { defs entry } [ defs ]
entry = ITEM | division
division = DIVISION_START
contents
DIVISION_END
BUGS, IDEAS, FEEDBACK
This document, will undoubtedly contain bugs and other problems. Please report such in the category doctools of the Tcllib SF Trackers
[http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have.
SEE ALSO
doctoc_intro, doctoc_lang_cmdref, doctoc_lang_faq, doctoc_lang_intro
KEYWORDS
doctoc commands, doctoc language, doctoc markup, doctoc syntax, markup, semantic markup
CATEGORY
Documentation tools
COPYRIGHT
Copyright (c) 2007-2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
doctools 1.0 doctoc_lang_syntax(n)