Sponsored Content
Top Forums UNIX for Dummies Questions & Answers easy UNIX for loop not working... Post 302539256 by statichazard on Saturday 16th of July 2011 12:02:43 AM
Old 07-16-2011
Wow man...I butchered this thing! But your guidance has gotten the whole thing working for me! Thank you! I really love when people don't just post the solution, because it got me thinking and now I understand it!
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop not working

Apologize if this is doesn't come under this group. I have a small script to find out users who last logged in to check there mail. (Tru 64 4.0, Netscape mail 3.6) -----> cat $1|awk -F: '$2=="SMTP-Accept" && $5~/@maildomain/ {s=$5;u++;las=substr($1)} END {for (i in u) {print... (2 Replies)
Discussion started by: nitin
2 Replies

2. UNIX for Dummies Questions & Answers

Easy UNIX notation question

can anyone tell me what exactly the following UNIX notation code does cause I need to do the same in windows? for x in webapps/sal/*.htm* do mv $x $x.bak sed 's@bob@sal@g' $x.bak > $x done Thanks (1 Reply)
Discussion started by: lavaghman
1 Replies

3. UNIX for Dummies Questions & Answers

easy unix question

I am trying to check through all of a certain type of file in all main directories, and find the top 10 that are taking up the most space. How can I do that? I was thinking like du *.file | sort -n | head (1 Reply)
Discussion started by: wallacer
1 Replies

4. UNIX for Dummies Questions & Answers

Need help on installing an EASY to use and easy to install command line text editor

Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some. I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies

5. UNIX for Dummies Questions & Answers

If then else loop not working

If then else segment of below code is not working. For each filename code is displaying output for if part as well as else part. Please help its urgent. for usercusttop in `echo ${filename}|sort|uniq|cut -c 1-${actualwordcount}` do ... (2 Replies)
Discussion started by: findprakash
2 Replies

6. Shell Programming and Scripting

Easy unix/sed question that I could have done 10 years ago!

Hi all and greetings from Ireland! I have not used much unix or awk/sed in years and have forgotten a lot. Easy enough query tho. I am cleansing/fixing 10,000 postal addresses using global replacements. I have 2 pipe delimited files , one is basically a spell checker for geographical... (4 Replies)
Discussion started by: dewsbury
4 Replies

7. Shell Programming and Scripting

Which unix is more easy with Oracle ?

Hi, currently our databasese are on AIX, but we plan to purchase new sever of unix except IBM.so colud you please tell en which unix flavor is more compatible with oracle sun solaris or HP unix and we also need list of SAN configuration. thanks a lot in advacne. (2 Replies)
Discussion started by: younusdba
2 Replies

8. Shell Programming and Scripting

For loop not working

Hi All, For loop in ksh not working if it was given in the following method. simple script: for i in {1..4} do echo $i done Output: {1..4} Even below also not working :( Script: for (( c=1; c<=5; c++ )) do echo "Welcome $c times..." done Output: ./x.sh: 0403-057 Syntax error... (13 Replies)
Discussion started by: girish_satyam
13 Replies

9. UNIX for Dummies Questions & Answers

for loop not working

Hi, I have ten different files to extract. so I thought for loop will help me. but it's not working for me. Please advice what I am doing wrong. for INCI in 1 2 3 4 5 6 7 8 9 10 do tar -xvf Update_INCI11.10.002_lnx86_1of10.tar done second file name is... (3 Replies)
Discussion started by: samnyc
3 Replies
HTML::Tidy::Message(3pm)				User Contributed Perl Documentation				  HTML::Tidy::Message(3pm)

NAME
HTML::Tidy::Message - Message object for the Tidy functionality SYNOPSIS
See HTML::Tidy for all the gory details. EXPORTS
None. It's all object-based. METHODS
Almost everything is an accessor. new( $file, $line, $column, $text ) Create an object. It's not very exciting. where() Returns a formatted string that describes where in the file the error has occurred. For example, (14:23) for line 14, column 23. The terrible thing about this function is that it's both a plain ol' formatting function as in my $str = where( 14, 23 ); AND it's an object method, as in: my $str = $error->where(); I don't know what I was thinking when I set it up this way, but it's bad practice. as_string() Returns a nicely-formatted string for printing out to stdout or some similar user thing. file() Returns the filename of the error, as set by the caller. type() Returns the type of the error. This will either be "TIDY_ERROR", or "TIDY_WARNING". line() Returns the line number of the error, or 0 if there isn't an applicable line number. column() Returns the column number, or 0 if there isn't an applicable column number. text() Returns the text of the message. This does not include a type string, like "Info: ". LICENSE
This code may be distributed under the same terms as Perl itself. Please note that these modules are not products of or supported by the employers of the various contributors to the code. AUTHOR
Andy Lester, "<andy@petdance.com>" perl v5.14.2 2010-02-16 HTML::Tidy::Message(3pm)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy