Hi -
Trying to take a list of ldap suffixes in a file, run an ldapsearch command on them, then run a grep command to see if it's a match, if not, then flag that and send an email alert.
The list file (ldaplist) would look like -
***********
o=company a
o=company b
***********
**... (7 Replies)
HELLO all :),
I have been trying to use a simple while loop to read a file " templist", line by line and perform an action. See the code below. The reason for not using a while read line loop is the for the use of the if condition that wouldn't work. I would appreciate some ideas as this has... (2 Replies)
Hi All,
How can we use read line using the index value of a FOR loop?
eg:
pt_mstr,pt_status,8
pt_mstr,pt_buyer,8
pt_mstr,pt_sfty_stk,8
pt_mstr,pt_ord_pol,3
pt_mstr,pt_capacity,8
pt_mstr,pt_plan_ord,3
pt_mstr,pt_ord_mult,8
From this file i want to read the line2, 3 and 4 only using a FOR... (3 Replies)
Hi I'm writing a bash script which will read an input file and look for occurrences of the current user ($USER) executing the script. When i find the occurrence of the username I take that line and append it to a file with a line number and bracket display next to line.
The input file has been... (12 Replies)
Hi
I am using while loop, below, to read lines from a very large file, around 400,000 rows. The script works fine until around line 300k but then starts giving incorrect result.
I have tried running the script with a smaller data set and it works fine. I made sure to include the line where... (2 Replies)
Hi,
I am trying to read a file line by line inside of a while loop. This while loop is part of a here document.
while read line
do
ssh -t $2@$remotehost <<REMOTE
ls path/to/dir > $path_to_dir
while read line1
do
echo "LINE --- $line"
done... (4 Replies)
I have written a script to read the file line by line.
It is reading and printing the lines.
But it is coming out of loop before reading last line.
So I am not able to print last line.
How do I solve it. (6 Replies)
#!/bin/bash
count=1
while read line
do
if (($count > 4)); then
awk -v var1="$count" '{printf "%3s%8s%11s%11s%11s\n",var1,$2,$3,$4,$5}'
else
echo $line
fi
count=$((count+1))
done < posre_sub.itp > test
cat test
INPUT:
; position restraints for... (3 Replies)
Hi
As a newbe in scripting, i struggle hard with my first script.
What i want to do is, bringing data of two files together.
file1:
....
05/14/12-04:00:00 41253 4259 5135 5604 5812 5372
05/14/12-04:10:00 53408 5501 6592 7402 7354 6639
05/14/12-04:20:00 58748 6037 7292 8223... (13 Replies)
Based on text file:
PATH:/media/hdd/Media/Video/title1 FILE:/media/cache/281662-14.jpg
PATH:/media/hdd/Media/Video/title2 FILE:/media/cache/281662-15.jpg
PATH:/media/hdd/Media/Video/title3 FILE:/media/cache/281662-16.jpg
PATH:/media/hdd/Media/Video/title4 FILE:/media/cache/281662-17.jpg... (12 Replies)
Discussion started by: TiedCone
12 Replies
LEARN ABOUT DEBIAN
autodia
AUTODIA(1p) User Contributed Perl Documentation AUTODIA(1p)NAME
autodia - a perl script using the Autodia modules to create UML Class Diagrams or documents. from code or other data sources.
INTRODUCTION
AutoDia takes source files as input and using a handler parses them to create documentation through templates. The handlers allow AutoDia
to parse any language by providing a handler and registering in in autodia.pm. The templates allow the output to be heavily customised from
Dia XML to simple HTML and seperates the logic of the application from the presentation of the results.
AutoDia is written in perl and defaults to the perl handler and file extension matching unless a language is specified using the -l switch.
AutoDia requires Template Toolkit and Perl 5. Some handlers and templates may require additional software, for example the Java SDK for the
java handler.
AutoDia can use GraphViz to generate layout coordinates, and can produce di-graphs (notation for directional graphs) in dot (plain or
canonical) and vcg, as well as Dia xml.
Helpful information, links and news can be found at the autodia website - http://www.aarontrevena.co.uk/opensource/autodia/
USAGE
"autodia ([-i filename [-p path] ] or [-d directory [-r] ]) [options]"
"autodia -i filename : use filename as input"
"autodia -i 'filea fileb filec' : use filea, fileb and filec as input"
"autodia -i filename -p .. : use ../filename as input file"
"autodia -d directoryname : use *.pl/pm in directoryname as input files"
"autodia -d 'foo bar quz' : use *pl/pm in directories foo, bar and quz as input files"
"autodia -d directory -r : use *pl/pm in directory and its subdirectories as input files"
"autodia -d directory -F : use files in directory but only one file per diagram" =item "autodia.pl -d directory -C : use
files in directory but skip CVS directories"
"autodia -o outfile.xml : use outfile.xml as output file (otherwise uses autodial.out.dia)"
"autodia -O : output to stdout"
"autodia -l language : parse source as language (ie: C) and look for appropriate filename extensions if also -d"
"autodia -t templatefile : use templatefile as template (otherwise uses template.xml)"
"autodia -l DBI -i "mysql:test:localhost" -U username -P password : use test database on localhost with username and password as username
and password"
"autodia -l Mason -i "/index.html" -p comp_root -G '$c' : use HTML::Mason to fetch /index.html from comp_root and show all components in
reach. -G corresponds to allow_globals."
"autodia -z : output via graphviz"
"autodia -Z : output via springgraph"
"autodia -v : output via VCG "
"autodia -s skipfile : exclude files or packagenames matching those listed in file"
c<autodia -D : ignore dependancies (ie do not process or display dependancies)>
"autodia -K : do not display packages that are not part of input"
"autodia -k : do not display superclasses that are not part of input"
"autodia -H : show only Public/Visible methods"
"autodia -m : show only Class methods"
"autodia -M : do not show Class Methods"
"autodia -a : show only Class Attributes"
"autodia -A : do not show Class Attributes"
"autodia -S : silent mode, no output to stdout except with -O"
"autodia -h : display this help message"
"autodia -V : display version and copyright message"
perl v5.12.4 2011-05-23 AUTODIA(1p)