I am looking for a way to remove any line in a text file that contains the string "Mac address". I guess you would grep and sed, but I am not sure how to do this. Thanks for you help. (3 Replies)
Hi guys,
i have a really big file, and i want to remove a specific line.
sed -i '5d' fileThis doesn't really work, it takes a lot of time...
The whole script is supposed to remove every word containing less than 5 characters and currently looks like this:
#!/bin/bash
line="1"... (2 Replies)
Dear All
I want to search string "1000" from input file and if it found i want remove line that contain 1000 and also remove 3 line above it and 2 line below it.
INPUT FILE:
BHAT-D 2
aaa
ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES
50 ... (7 Replies)
CREATE TYPE "SUPERB"."OE_L2_FOOTERDATA_REC"
OID '1232323232' IS OBJECT
(
AWLSTrxId NUMBER,
AdjPurchaseAmount NUMBER,
Network NUMBER,
ConfigVersion NUMBER
);
/
I wanted my output to be as follow:
CREATE TYPE OE_L2_FOOTERDATA_REC
OID '1232323232'... (7 Replies)
Hi
I need to remove "|" char when it's the last char of the line.
Input file:
generoso|desprendido|altruista|
abnegar|ceder|sacrificar|
abocetado-da|esbozado|
apuntado|insinuado|incompleto
abocetar|esbozar|bosquejar|
diseņar|delinear
------------------------ output need ---
... (11 Replies)
I would like to identify every line with a specific string, in this case: "Mamma".
I would like to remove that line, and also the line above it and below it. So the below
Where are all amazing Flats
Look At The Great Big White
Hey There Hot Mamma
You Are So hot Baby
I wish You were Mine... (5 Replies)
In vi I would like to remove a line containing a string. I thought after reading this I could do this.
https://www.unix.com/302297288-post3.html
:'3560,3572/gcc/d'
It keeps complaining vi mark not set. And sometimes it complains E488: Trailing characters.
I don't understand what mark... (5 Replies)
Hi,
I need to remove line breaks from a file, but only the ones at specific position.
Input file:
this is ok
this line is divided at posit
ion 30. The same as this one,
also position 30
the rest of lines are ok
with different lengths
The longest ones are always s
plitted at same... (15 Replies)
I need to remove specific column to one range
source file
3 1 000123456
2 2 000123569
3 3 000123564
12 000123156
15 000125648
128 000125648
Output required
3 000123456
2 000123569
3 000123564
12 000123156
15 000125648
128 000125648 (6 Replies)
Discussion started by: ranjancom2000
6 Replies
LEARN ABOUT DEBIAN
fwcheck_psad
FWCHECK_PSAD(8) System Manager's Manual FWCHECK_PSAD(8)NAME
fwcheck_psad - look for iptables rules that log and block unwanted packets.
SYNOPSIS
fwcheck_psad [options]
DESCRIPTION
fwcheck_psad parses the iptables ruleset on the underlying system to see if iptables has been configured to log and block unwanted packets
by default. This program is called by psad , but can also be executed manually from the command line.
OPTIONS --config
Specify path to the psad configuration file. By default this is /etc/psad/psad.conf.
--fw-file
Allow the user to analyze a specific rulset from a file rather than the local policy.
--fw-analyze
Analyze the local iptables ruleset and exit.
--no-fw-search-all
Look for specific log prefix defined through the FW_MSG_SEARCH variable(s) in the configuration file.
--Lib-dir
Specify path to psad lib directory.
--help
Display the help message.
SEE ALSO iptables(8), psad(8)AUTHOR
Michael Rash <mbr@cipherdyne.org>
BUGS
Send bug reports to mbr@cipherdyne.org. Suggestions and/or comments are always welcome as well.
DISTRIBUTION
psad is distributed under the GNU General Public License (GPL), and the latest version may be downloaded from: http://www.cipherdyne.org/
Debian GNU/Linux Aug, 2008 FWCHECK_PSAD(8)