Hi Guru's , I have a whole bunch of files in /var/tmp that i need to strip any blank lines from, so ive written the following script to identify the lines (which works perfectly).. but i wanted to know, how can I actually strip the identified lines from the actual source files ??
Any help or advice on this would be greatly appreciated
Hello, i need some help with a perl script.
i need to add the lines:
#ifdef LOGALLOC
#include "logalloc.h"
#endif // LOGALLOC
To all c and h files in a project with subdirectories.
Logalloc is a tool to log all *alloc and free's in a text file, it defines the *alloc funtions new.... (2 Replies)
Hi
i have the below lines from a file
7538
PRGRP450800PERSONAL SOAP AND BATH ADDITIV 7036
PRGRP450800PERSONAL SOAP AND BATH ADDITIV 7036
PRGRP450800PERSONAL SOAP AND BATH ADDITIV 7036... (3 Replies)
Hey everyone, I have a question about comparing two files. I have two lists of files. The first list, todo.csv, lists a series of compounds my supervisor wants me to perform calculations on. The second list, done.csv, lists a series of compounds that I have already performed calculations on.... (2 Replies)
In my bash script I want to echo lines in a file and ensure no blank lines are echoed:for i in $(cat txt)
do
echo $i | sed 's/|/ /g;s/ SEARCHTERM$//g;s/ /\r\n/g;s/^$/d'
done
Keep in mind this is a fragment so ignore the fact that the for loop is not closed. When I add the "s/^$/d' per... (12 Replies)
Hi All,
How do i remove continuos blank lines from a file.
I have a file with data:
abc;
def;
ghi;
jkl;
mno;
pqr;
In the above file, there are two blank lines. I want to remove, one out of them.
My output should look like: (2 Replies)
Hi,
my input file is like this I want to remove the blank line.
"/home/rit/sandbox/garuda/data/test/woman/T_RITK_F0008_ML_100080039.lab"
r
a
N
e
l
a
k
sh
a
m
.
"/home/rit/sandbox/garuda/data/test/woman/T_RITK_F0008_ML_100070453.lab"
a
v
a
s (4 Replies)
GM,
I have an issue at work, which requires a simple solution. But, after multiple attempts, I have not been able to hit on the code needed.
I am assuming that sed, awk or even perl could do what I need.
I have an application that adds extra blank page feeds, for multiple reports, when... (7 Replies)
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
Discussion started by: dJHa
7 Replies
LEARN ABOUT SUSE
inncheck
INNCHECK(8) System Manager's Manual INNCHECK(8)NAME
inncheck - check inn configuration and database files.
SYNOPSIS
inncheck [ -a ] [ -v ] [ -pedantic ] [ -f ] [ -perm ] [ -noperm ] [ file=value | file ]
DESCRIPTION
Inncheck examines various configuration files and databases and verifies things about them. Things verified depend on the file being
checked, but generally are things like permissions, ownership, syntax errors in config files, etc.
Inncheck does not make changes to any files -- it just reports what it thinks may be wrong, and it is up to the operator to fix the prob-
lem.
The set of files checked may be restricted by using file or file=value arguments. For example, putting incoming.conf causes only the incom-
ing.conf file to be checked. Using incoming.conf=/tmp/incoming.conf on the command line will cause inncheck to only verify the incom-
ing.conf file, and it will perform the checks on the file /tmp/incoming.conf file instead of the default one.
Valid values for file are:
active
control.ctl
expire.ctl
incoming.conf
inn.conf
moderators
newsfeeds
nntpsend.ctl
passwd.nntp
readers.conf
OPTIONS -a If any ``file'' value or ``file=value'' pairs (see below) are given, then normally only the files they refer to are checked. Use the
``-a'' flag to specify that all files should be checked regardless. In this case the form file=value will be the more useful.
-v Use the ``-v'' option to get more verbose output.
-pedantic
Use the ``-pedantic'' option to get reports on things that are not necessarily wrong, but may indicate a bad configuration -- such
as inn.conf missing a key.
-f Use the ``-f'' flag to have inncheck print the appropriate chown/chgrp/chmod command necessary to fix a problem that it reports.
Any other output lines will be prefixed with a ``#'' character to make the output be valid input for a shell. Note that the
``-perm'' flag must be used as well when using this flag.
-perm Inncheck checks all files for permission problems. If the ``-perm'' flag is used, then only the files specified by the file or
file=value command line arguments will be checked for problems other than permission problems.
-noperm
To avoid doing any checking of file permissions or ownership, use the ``-noperm'' option.
EXAMPLES
To have inncheck check all files for syntax and permission problems simply:
inncheck
To have inncheck check all files for permission problems and to verify the syntax of the active and incoming.conf files do:
inncheck -perm active incoming.conf
To fix the permissions problems noted in the output of the above command, modify it as follow:
inncheck -f -perm | sh
To have inncheck check the test newsfeeds file in /var/tmp/newsfeeds.testing, do:
inncheck newsfeeds=/var/tmp/newsfeeds.testing
To have inncheck check all the files as it normally does, but to specify a different location for the newsfeeds file, so:
inncheck -a newsfeeds=/var/tmp/newsfeeds.testing
BUGS
If the ``-f'' and ``-perm'' options are used together, along with ``-a'' or some ``file'' or ``file=value'' arguments that refer to a file
with a syntax problem, then the output will no longer be valid input for a shell.
HISTORY
Written by Brendan Kehoe <brendan@cygnus.com> and Rich Salz <rsalz@uunet.uu.net> This is revision 8409, dated 2009-04-11.
SEE ALSO active(5), expire.ctl(5), history(5), incoming.conf(5), inn.conf(5), newsfeeds(5)INNCHECK(8)