I'm looking at allowing remote telnet into my server.
like any security-minded administrator, I want to log what my users type on the telnet session.
I'm using the script command to generate transcripts of the users session.
I have /etc/profile set to automatically start the script command... (2 Replies)
Is it possible to store all standard-out of a bash script and the binaries it calls in a log file AND still display the stdout on screen?
I know this is possible to store ALL stdout/stderr of a script to a single log file like:
exec 1>&${logFile}
exec 2>&1
But running a script with the... (3 Replies)
I have a script that outputs the weather on two lines.
If possibly I would like to set a character limit on them
Currently it outputs something like
but I would like to limit the lines so appends an ellipsis if nescessary:
This is the script
#! /bin/bash
curl -s --connect-timeout... (2 Replies)
I have been doing a lot more bash on LINUX RedHat and Ubuntu lately, and one thing keeps cropping up intermittently. If I do a $( some-commands ) Command Substitution, the some-commands are logged onto my screen each time they are evaluated. Did I turn on some odd option? It seems to happen just... (13 Replies)
Hey guys and gals,
Working on a script to limit the reoccurrance of characters in a line.
sed "/\(.\).*\1/d" -i file.txt
sed "/\(.\).*\1.*\1/d" -i file.txt
sed "/\(.\).*\1.*\1.*1/d" -i file.txt
..
To limit character reoccurance with 1x, 2x, 3x etc.
However I would like to be able to... (2 Replies)
hey all,
./test
#!/bin/bash
for line in $(cat data1)
do
echo $line
done
data1
ello there
nobody says a word
Output after running the file :
hello (4 Replies)
Hi,
I am trying to pull data from a txt file which has 51 lines
Example
AK
AR
AL
AZ
CA
CO
CT
Now i want to send above data as input to script but i want to run them twice at a time in a nohup
like
nohup Script_name AK & (3 Replies)
I have a file that looks like this:
cat includes
CORP-CRASHTEST-BU
e:\crashplan\
CORP-TEST
/usr/openv/java
/usr/openv/logs
/usr/openv/man
CORP-LABS_TEST
/usr/openv/java
/usr/openv/logs
/usr/openv/man
What I want to do is make three new files with just those selections. So the three... (4 Replies)
Is there a limit on the amount of lines less can handle? I grepped for something that is pretty common in my files so I tried to filter it through less so it was easier to look at. So I then used a redirect ">" to create a file. It created a file that was 103K long. So that makes me think there is... (6 Replies)
Hi, I need some help with this:
I'm making a script which does a couple of things with image files. The script is supposed to echo the number of each image it is processing like this:
Processing image1.jpgThe problem is with images with very long filenames, so I want to know how to limit the... (5 Replies)
Discussion started by: Shadow_Reaper
5 Replies
LEARN ABOUT CENTOS
sgml2txt
SGML2TXT(1) General Commands Manual SGML2TXT(1)NAME
sgml2txt - create plain text output from a LinuxDoc DTD SGML source file
SYNOPSIS
sgml2txt [generic-option...] [--manpage] [--filter] [--blanks=n] file[.sgml]
DESCRIPTION
sgml2txt is an old and obsoleted form of the text converter command of LinuxDoc-Tools. It is recommended to switch the new form linuxdoc
-B text now. It converts a LinuxDoc DTD SGML source file to ASCII, ISO-8859-1, or EUC-JP output. Output will appear in file.txt where file
is the name of the SGML source file.
The attribute/value pair "output=txt" is set for conditionals.
OPTIONS
sgml2txt accepts all the generic options described in linuxdoc(1), and the following specific options:
--manpage, -m
Outputs a groff source file, suitable for formatting with groff -man for man pages
--filter, -f
Remove backspace-overstrikes from the intermediate form generated by groff(1).
--pass, -P
The argument of the pass option is added to the command-line options handed to groff(1).
--blanks=n, -b
Set the limit of continuous blank lines for generating the output document. The default limit is 3. if 0 (zero) is specified, the
result have many continuous blank lines.
file The SGML source file, named either file or file.sgml
FILES
Many files and executables in /usr/share/linuxdoc-tools are used.
BUGS
None known.
AUTHOR
Originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, based on scripts by Tom Gordon and Alexander Horz, and later rewritten by
Cees de Groot <cg@cdegroot.com> for SGML-Tools (v1). Currently maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools.
SEE ALSO linuxdoc(1), sgml2html(1), sgml2info(1), sgml2latex(1), sgml2lyx(1), sgml2rtf(1), sgmlcheck(1).
16 May 2000 SGML2TXT(1)