12-18-2012
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
have a basic query.
Please see the below code:
list="one two three"
for var in $list ; do
echo $var
list="nolist"
Done
Wht if I want to print only first/ last line in the list
Eg one & three
Regards
er_ashu (3 Replies)
Discussion started by: er_ashu
3 Replies
2. Shell Programming and Scripting
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies
3. Shell Programming and Scripting
sorry for being dumb here, but is there a way my for loop can take an entire line of a file into consideration instead of each word in a line... ill explain
if i have a file like this
# cat list
serial: 23124
hostname: server1
and a script that does this
# cat list.sh
#!/bin/sh
... (6 Replies)
Discussion started by: hcclnoodles
6 Replies
4. Shell Programming and Scripting
Hi everyone - just like to say great forum...I've learned a lot off here but I just can't figure this one out...(first post)
I'm writing a script to monitor a directory and email the latest modified file....(I realize there are better ways than I'm trying here...I don't like copying and pasting... (5 Replies)
Discussion started by: trevthefatty
5 Replies
5. Shell Programming and Scripting
OS : RHEL 6.1
Shell : Bash
I had a similair post on this a few weeks back. But I didn't explain my requirements clearly then. Hence starting a new thread now.
I have lots of files in /tmp/stage directory as show below.
I want to loop through each files to run a command on each file.
I... (8 Replies)
Discussion started by: kraljic
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Sorry if this is a newbie question. I guess you can use either awk or shell script for this sequence of operations, but knowing very little about either of them I'm not sure how I should try to write this.
The basic objective is to copy certain files that are scattered all over my... (10 Replies)
Discussion started by: pc2001
10 Replies
7. Shell Programming and Scripting
I'm obviously very new to this. I'm trying to write a simple for loop that will read the directory names in /Users and then copy a file into the same subdir in each user directory.
I have this, and it works but it isn't great.
#!/bin/bash
HOMEDIRS=/Users/*
for dirs in $HOMEDIRS; do
if ];... (5 Replies)
Discussion started by: Heath_T
5 Replies
8. Shell Programming and Scripting
I'm trying to echo the release version of some of our Linux servers. Typically I do these types of things by "catting" a text file with the host names, "ssh-ing" to the host and running my string.
This is what I've written
for i in `cat versions.txt` ; do echo $i ; ssh $i cat /etc/issue |... (5 Replies)
Discussion started by: lombardi4851
5 Replies
9. Shell Programming and Scripting
Oracle Linux : 6.4/bash shell
In the below I want to break out of the loop when it enters the 5th iteration.
#!/bin/bash
for i in 1 2 3 4 5 6
do
echo "$i"
if
echo "Oh Nooo... i = $i. I need to stop the iteration and jump out of the loop"
then break
fi
done
But, it only... (3 Replies)
Discussion started by: John K
3 Replies
10. Shell Programming and Scripting
Hello
i have a file with this format:
ip.txt content:
192.168.1.1/2020
192.136.1.2/2028
192.168.1.10/3047
....
need to create 1000 files and each files content, import data from ip.txt line (first file with first line data, second file with second line...etc)
internal=yes
internalip=... (14 Replies)
Discussion started by: nimafire
14 Replies
LEARN ABOUT DEBIAN
vilistextum
VILISTEXTUM(1) General Commands Manual VILISTEXTUM(1)
NAME
vilistextum - html to ascii converter
SYNOPSIS
vilistextum [OPTIONS] [inputfile |-] [outputfile | -]
DESCRIPTION
vilistextum is a html to ascii converter specifically programmed to get the best out of incorrect html.
OPTIONS
inputfile,- resp. outputfile,-
replace inputfile with '-' for reading from standard input, likewise outputfile with '-' for writing to standard output.
-a, --no-alt
don't output anything for IMG tags even if they have an ALT attribute. Implies --no-image.
-c, --convert-tags
some tags will be converted to special characters.
-e, --errorlevel NUMBER
increase level of verbosity for error messages (0: No error messages).
-i, --defimage STRING
IMG tags without alt attribute are output as [STRING].
-l, --links
numbers the links in the document and creates footnotes of each link at the end of the file.
-k, --links-inline
print the links directly after the html tag.
-m, --dont-convert-characters
don't convert the entities from windows1252 (€-Ÿ and their proper entity names)
-n, --no-image
don't output [Image] for IMG tags that have no ALT attribute.
-p, --palm
output text more suitable for reading on a PDA.
-r, --remove-empty-alt
if there is an empty ALT attribute in a IMG tag (eg <IMG href="..." alt="">), don't output '[]'.
-s, --shrink-lines [NUMBER]
if there are more than NUMBER empty lines, output only NUMBER. Default: 1.
-t, --no-title
don't output title.
-w, --width NUMBER
maximum line width.
-h, --help
display this help and exit
-v, --version
output version information and exit
MULTIBYTE OPTIONS (Only available if compiled with multibyte support)
-u, --output-utf-8
instead of the character set of the html document, everything will be output as utf-8.
-x, --translit
use the //TRANSLIT feature of libiconv. Consult the iconv manual for details.
-y, --charset CHARSET
if the HTML document doesn't provide a character set in the meta tags, use CHARSET.
LIMITATIONS
The rendering of tables is not very good.
The handling of OL is incomplete. The program treats it as UL and more than 10 nested lists confuse it.
Text is never justified.
REPORTING BUGS
Please report bugs to <bhaak@gmx.net>.
AUTHOR
Vilistextum was written by Patric Mueller <bhaak@gmx.net> and may be freely distributed under the terms of the GNU General Public License
Version 2. There is ABSOLUTELY NO WARRANTY for this program.
SEE ALSO
iconv(3), lynx(1), links(1), w3m(1)
22 OCT 2006 VILISTEXTUM(1)