04-25-2014
Damn, the brackets.... I knew it was simple
![Stick Out Tongue Smilie](https://www.unix.com/images/smilies/tongue.gif)
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
How do I allign these lines html,thank you
<span class="time"><strong>
06:00
</strong></span>
<div class="cDesc" style="display: none">
TEXTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
</div>
<div class="cTitle" style="display: none"> ... (3 Replies)
Discussion started by: Novice-
3 Replies
2. Shell Programming and Scripting
Hi,
I wrote the following script:
#! /bin/bash
for ((i = 1600; i < 3700; i = i + 100))
do
awk '{if ($16 > "'$i'"-101 && $16 < "'$i'") print $0 }' prova > prova1
done
which is supposed to print, from the original file "prova" in the new file prov1 , only the data that at the... (2 Replies)
Discussion started by: danile
2 Replies
3. Shell Programming and Scripting
Hi
I have an SQL which returns me the o/p as below in an unformatted manner
Table Size No.
=============================================
DEF 22 2
PAF 3 1
99D 12 1
USERS 6 1
04D 4 ... (4 Replies)
Discussion started by: jjoy
4 Replies
4. Shell Programming and Scripting
Hi;
I am scripting in Shell and i want to write output (on screen) to a text file?
... | tee gcsw/output.txt
doesnot work?
:(:( (6 Replies)
Discussion started by: gc_sw
6 Replies
5. Shell Programming and Scripting
Hi
Below command is returning the list of files which having this string "MTL_SYSTEM_ITEMS".
find . -name "*"|xargs grep -il MTL_SYSTEM_ITEMS
Ex: Above command is returing 2 files (Out of 10 files 2 files having this string). ./file1.txt and ./file2.txt
Here I want to append... (3 Replies)
Discussion started by: balajiora
3 Replies
6. Shell Programming and Scripting
Dear All
I have a script file like the following:
.....
.....
Variable_1 = 888
Variable_2 = 999
.....
MyExternalProgram Myfile
.....
The line MyExternalProgram Myfile will generate some number, Say 777
Now I hope I can output the result of above codes to a text file,... (2 Replies)
Discussion started by: littlewenwen
2 Replies
7. Shell Programming and Scripting
Experts ,
In the given output of the log file, the 2nd field that is separated by "|" pipe is not aligned well due to the uneven data length, I would like it to align the 2nd column with 37 length (that is disturbed in the output) including the pipe . The two pepe "|" would be in a aligned way... (2 Replies)
Discussion started by: rveri
2 Replies
8. Shell Programming and Scripting
Currently I have a perl code to combine two different files.
#! /usr/bin/perl -w
use strict;
open FP1,"A.txt";
open FP2,"B.txt";
my ($l1,$l2);
while(1)
{
$l1=<FP1>; chomp $l1;
$l2=<FP2>; chomp $l2;
last unless(defined $l1 or defined $l2);
print "$l1 $l2\n";
}
close FP2;... (4 Replies)
Discussion started by: Tzeronone
4 Replies
9. Shell Programming and Scripting
I am trying using awk to open an input file and check a column 2/field $2 and if there is a warning then that is displayed (variantchecker): G not found at position 459, found A instead. The attached Sample1.txt is that file. If in that column/field there is a black space, then the text after... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. Shell Programming and Scripting
Hi all
I have created a script to allow me to gain a number of file times and how long they take to execute. I have been asked to get the average time for the log. The log will update every 5 minutes and never be empty.
141
152
157
161
168
169
171
179
202
207
229
651
666
714... (3 Replies)
Discussion started by: simpsa27
3 Replies
LEARN ABOUT DEBIAN
aephea-ref
aephea-ref(7) MISCELLANEOUS aephea-ref(7)
NAME
aephea-ref - A description of the Aephea definitions for referencing
DESCRIPTION
The following definitions are used by the Aephea simpledocument class as well as the Portable Unix Documentation (pud) manual and faq
classes (see pud-man(7) and pud-faq(7)).
MACROS
efload#2
efloadx#2
Both macros take as first argument a label that uniquely defines the reference. The second argument is a vararg containing key-value
pairs.
These macros are usually not needed in Aephea classes; they are lower level facilities.
ef#2
The first argument is a label. The second argument should be a key associated with that label. The result is the value associated with the
label/key pair.
These macros are usually not needed in Aephea classes; they are lower level facilities used by high level Aephea definitions (e.g.
iref#2, and secref#1).
efcaption#1
efnumber#1
eflevel#1
The argument is a label. The result is respectively the caption, number, or level associated with that label.
eference#1
efer#1
The first associates a number with the label that is in the first argument, and prints it inbeween square brackets. The label is anchored
to this location. The second outputs the associated number inbetween brackets, and makes it carry a link to the anchor. For example, I am
about to create a link [1] and another link [2] to the items appearing below.
[1] The first reference.
[2] The second reference.
If you prefer another bibliography style, find the macros and adapt them according to your needs - they are very simple.
eference#2 currently writes data to the file \__fnbase__.zmr, to be read back in using a load{\__fnbase__.zmr} statement. This is
automatically done when using any of the Aephea classes.
aephea-ref 1.002, 10-008 8 Jan 2010 aephea-ref(7)