I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help.
echo $SH_VAR | command_line Syntax.
The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
I need to add spaces in between characters in a string variable.
Is there a shortcut? I know you can remove the spaces with sed, but does sed have a way to add them?
Example:
I have: DATA01
I want it to be: D A T A 0 1
What I have done so far is to create a function... (4 Replies)
Hi,
I want to test a unix file by inserting greek characters in to vi editor.
Can anyone please suggest how to insert greek characters in to vi editor. (2 Replies)
Hi Experts,
I have called some.txt with the following content.
oracle HYRDSRVIHUB01 pts/0 TESTIHUB 07-JUN-10 CREATE TABLE
TESTIHUB PHONE ... (12 Replies)
Input:
Youcaneasilydothisbyhighlightingyourcode.
Putting space after three characters.
You can eas ily dot his byh igh lig hti ngy our cod e.
How can i do this using sed? (10 Replies)
Hey all,
Fist post, so be kind... I have written an expect script which logs into a terminal and gathers several screens of information. Unfortunately the log file gives me all the special escape and control characters from the terminal. I am hoping to use a combination of shell scripting, sed,... (1 Reply)
i have written a shell script that reads a csv file and inserts tokenized strings into the database.
the problem comes when the csv file has cyrillic characters.
how do i set the parameters in my shell script(korn shell) so that any characters can be inserted into the database. (3 Replies)
Hello, newb here :o
How do I add square brackets before and after the first character in a string using sed?
e.g.
0123456
123456
My attempts have been fruitless.
sed 's/.\{0\}//'
Thanks. (2 Replies)
Hi all...
This is more of a concensus question than help...
As many of you know I am experimenting with the limitations of Pure POSIX shell scripting.
Q: Is the directory /bin considered part of the Pure POSIX shell or must I stick entirely with the builtins only?
The reason is I... (2 Replies)
Dear all,
I would like to insert N blankspaces in front of a string using sed command
To give an example (N=10), I tried that code:
$ echo "abcd" | sed 's/^/ \{10,\}&/'
but I failed, by obtaining that result:
{10,}abcd
Any help would be greatly appreciated,
Thanks in advance,... (18 Replies)
Discussion started by: dae
18 Replies
LEARN ABOUT DEBIAN
pure-ftpwho
pure-ftpwho(8) Pure-FTPd pure-ftpwho(8)NAME
pure-ftpwho - Report current FTP sessions
SYNTAX
pure-ftpwho [-c] [-h] [-H] [-n] [-p] [-s] [-v] [-w] [-W] [-x]
DESCRIPTION
pure-ftpwho shows current Pure-FTPd client sessions. Only the system administrator may run this. Output can be text (default), HTML, XML
data and parser-optimized. The server has to be compiled with --with-ftpwho to support this command.
OPTIONS -c the program is called via a web server (CGI interface) . Output is a full HTML page with the initial content-type header. This
option is automatically enabled if an environment variable called GATEWAY_INTERFACE is found. This is the default if you can the
program from a CGI-enabled web server (Apache, Roxen, Caudium, WN, ...) .
-h Output help information and exit.
-H Don't resolve host names, and only show IP addresses (faster).
-n A synonym for -H.
-p Output Mac OSX / GNUStep plist data.
-s Output only one line per client, with only numeric data, delimited by a | character. It's not very human-readable, but it's
designed for easy parsing by shell scripts (cut/sed) . '|' characters in user names or file names are quoted (|) .
-v Output an ASCII table (just like the default mode), with more info. The verbose output includes the local IP, the local port, the
total size of transfered files and the current number of transfered bytes.
-w Output a complete HTML page (web mode).
-W Output an HTML page with no header and no footer. This is an embedded mode, suitable for inline calls from CGI, SSI or PHP scripts.
-x Output well-formed XML data for post-processing.
FILES
/var/run/pure-ftpd/ Scoreboard directory. Should always owned by root and on a lockable filesystem.
ENVIRONMENT VARIABLES
GATEWAY_INTERFACE
If found, automatically run in CGI mode and output HTML data.
AUTHORS
Frank DENIS <j at pureftpd dot org>
SEE ALSO ftp(1), pure-ftpd(8)pure-ftpwho(8)pure-mrtginfo(8)pure-uploadscript(8)pure-statsdecode(8)pure-pw(8)pure-quotacheck(8)pure-authd(8)
RFC 959, RFC 2389, RFC 2228 and RFC 2428.
Pure-FTPd team 1.0.36 pure-ftpwho(8)