The output from ggrep -A 1 sysidconf $i ends with a DOS <carriage-return><newline> character pair as a line terminator instead of the UNIX <newline> character line terminator.
Are these log files from a DOS system?
From where you are now, you should be able to recover using ksh or /usr/xpg4/bin/sh (not /bin/sh) to run the for loop:
and if you want to run your original script again and avoid this step, change it from:
to:
Greetings!
Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities for Windows, but none for UNIX. I have 10,000 files that I need to rename in a several tier (deep) web site directory. I have the original... (1 Reply)
Greetings!
Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities for Windows, but none for UNIX. I have 10,000 files that I need to rename in a several tier (deep) web site directory. I have the original... (2 Replies)
Hi,
I need to rename all the .txt files present in current directory to .dat files respectively in UNIX.
for example:
$ ls
aaa.txt bbb.txt ccc.txt
I need to change them to
$ ls
aaa.dat bbb.dat ccc.dat
Is there any UNIX command to do this in one go?
... (3 Replies)
:wall:
Hello there,
basically in my program where im stuck at is when it comes to rename the files in a loop.
- the program counts the number of files w a given name (works!)
- and then if the number of files is greater or equal to the MAX_VERSIONS (numbers of files allowed w the... (1 Reply)
I have to write a script to get some files from remote server using FTP and rename it after the FTP. I use wildcard to get the file as i do not no the exact file name or the number of files in the remote server.
My script is similar to the following...
#!/bin/sh
LOG=/Log/ftp.log
ftp (FTP... (0 Replies)
Hi, I have the following problem:
I have a list of files:
1.txt
2.txt
3.txt
4.txt
Then I have a list of variable names inside variable.txt:
A
B
C
D
I'd like to rename 1.txt, 2.txt etc using the variables from variable.txt (2 Replies)
I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command
find . -type f -name '*\**' -exec bash -c 'f="$1"; mv "$f" "${f//\*/-}"' - '{}' \
People tell me it works for... (4 Replies)
Hi Friends,
I have a requirement to get multiple files from ftp(remote) server and once the files is copied to local machine , I need to move the files on to a different directory in ftp machine.
FTP Machine : 9.9.999.999
Source File Directory : /ftpuser
File Pattern: TMS*
Now I have... (1 Reply)
Hi,
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Hi,
On my Sun Ultra 45, display was flickering. After changing PCI slot of graphic card (XVR-300), display stablized, but, now X-server not starting. I am getting following messages
The X-server can not be started on display : 0...
See file/var/dt/Xerrors for details.
the output of... (8 Replies)
Discussion started by: rakhsin
8 Replies
LEARN ABOUT DEBIAN
mailgraph
MAILGRAPH(8) System Manager's Manual MAILGRAPH(8)NAME
mailgraph - daemon which produces graphs of SMTP traffic
SYNOPSIS
mailgraph [ options ]
DESCRIPTION
mailgraph is a daemon which produces mail statistics RRDtool for Postfix and Sendmail. This stats are stored for generating daily, weekly,
monthly and yearly graphs of sent/received/rejected and bounced/viruses/spam mails.
OPTIONS -h, --help
Display help and exit.
-v, --verbose
Be verbose about what you do.
-V, --version
Output version information and exit.
-c, --cat
Cause the logfile to be only read and not monitored.
-l, --logfile file
Monitor logfile file instead of /var/log/syslog.
-t, --logtype type
Set logfile's type (default: syslog).
-y, --year
Start year of the log file (default: current year).
--host=HOST
Use only entries for HOST (regexp) in syslog.
-d, --daemon
Start in the background
--daemon-pid=FILE
Write PID to FILE instead of /var/run/mailgraph.pid.
--daemon-rrd=DIR
Write RRDs to DIR instead of /var/lib/mailgraph/.
--daemon-log=FILE
Write verbose-log to FILE instead of /var/log/mailgraph.log.
--ignore-localhost
Ignore mail to/from localhost (used for virus scanner).
--ignore-host=HOST
Ignore mail to/from HOST (used for virus scanner).
--no-mail-rrd
Do not update the mail rrd.
--no-virus-rrd
Do not update the virus rrd.
--no-greylist-rrd
Do not update the greylist rrd.
--rrd-name=NAME
Use NAME.rrd, NAME_virus.rrd and NAME_greylist.rrd for the rrd files.
--rbl-is-spam
Count rbl rejects as spam.
--virbl-is-virus
Count virbl rejects as viruses.
SEE ALSO rrdtool(1), RRDs(3pm)AUTHOR
David Schweikert <dws@ee.ethz.ch>
MAILGRAPH(8)