07-31-2008
It woks fine.
Can you please explain the following part in the command
'{ if (blank++) next; print }1'
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am trying to remove duplicate lines from a file. For example the contents of example.txt is:
this is a test
2342
this is a test
34343
this is a test
43434
and i want to remove the "this is a test" lines only and end up with the numbers in the file, that is, end up with:
2342... (4 Replies)
Discussion started by: ocelot
4 Replies
2. Shell Programming and Scripting
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)
Discussion started by: dhanamurthy
3 Replies
3. Shell Programming and Scripting
Hi,
I need to concatenate three files in to one destination file.In this if some duplicate data occurs it should be deleted.
eg:
file1:
-----
data1 value1
data2 value2
data3 value3
file2:
-----
data1 value1
data4 value4
data5 value5
file3:
-----
data1 value1
data4 value4 (3 Replies)
Discussion started by: Sharmila_P
3 Replies
4. Shell Programming and Scripting
please help me in getting following:
Input Desired output
x="foo" foo
x="foo foo" foo
x="foo foo" foo
x="foo abc foo" foo abc
x="foo foo1 foo2" foo foo1 foo2
I need to remove duplicated from string.. (8 Replies)
Discussion started by: vickylife
8 Replies
5. Shell Programming and Scripting
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 ??
my... (11 Replies)
Discussion started by: hcclnoodles
11 Replies
6. Shell Programming and Scripting
Hello,
I am in need of removing duplicate lines from within a file per section.
File:
ABC1 012345 header
ABC2 7890-000
ABC3 012345 Header Table
ABC4
ABC5 593.0000 587.4800
ABC5 593.5000 587.6580 <= dup need to remove
ABC5 593.5000 ... (5 Replies)
Discussion started by: petersf
5 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have a text file that has blank lines at different places.
How to remove all the blank lines in a file?
Thanks
Ashok (3 Replies)
Discussion started by: ashok.k
3 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: MaindotC
12 Replies
9. Shell Programming and Scripting
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)
Discussion started by: raosr020
2 Replies
10. Shell Programming and Scripting
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)
Discussion started by: sreejithalokkan
4 Replies
LEARN ABOUT SUSE
faxq-helper
faxq-helper(1) mgetty+sendfax manual faxq-helper(1)
NAME
faxq-helper - privileged helper process to access the fax queue
SYNOPSIS
faxq-helper <command> [<options>]
DESCRIPTION
faxq-helper is part of the internal workings of faxspool(1).
Formerly, the /var/spool/fax/outgoing directory was world-writeable, leading to all sort of funny symlink attacks against faxspool(1) and
faxrunq(8).
These days, it's owned by the user ``fax'', and only this user can write to it. To be able to put jobs there, faxspool(1) calls faxq-
helper for very clearly defined purposes:
- make a new queue directory
- put a new fax G3 file into this queue directory
- put a JOB file into this queue directory, and activate the fax job
and possibly:
- remove a fax job from the queue (to be used by faxrm and in case of errors)
- re-queue a job that has been suspended due to repeated failures (faxq -r)
To achieve this, faxq-helper is installed set-user-id fax. If you remove the suid bit, or chown the fax queue directory to a different
user, it will stop working.
RETURN VALUES
faxq-helper has the following exit() values:
0 everything went fine
1 invalid JOB ID specified on the command line
2 some problem with the directory setup of the outgoing queue dir, /var/spool/fax/outgoing (it will print a detailed error message)
3 some problems with the user ID setup of the ``fax'' user (it will print a detailed error message)
10 failure to process the specified command (it will print a detailed error message)
SEE ALSO
faxspool(1), faxq(1), faxrm(1), faxqueue(5)
AUTHOR
faxq-helper is Copyright (C) 2004-2006 by Gert Doering, <gert@greenie.muc.de>.
greenie 18 Feb 06 faxq-helper(1)