Virtual Dave
For When You Can't Have The Real Thing
[
start
|
index
|
login
]
start
>
Linux
> Useful sed
Useful sed
Created by
dave
. Last edited by
dave
, 4 years and 322 days ago. Viewed 1,195 times. #2
[
diff
] [
history
]
[edit]
[
rdf
]
labels
attachments
(2019-01-17)
Print line X from a text file
$ sed 'LINEq;d' FILE
Delete line X in a text file
$ sed -i LINEd FILE
...for example, .ssh/known_hosts:
$ sed -i 672d ~/.ssh/known_hosts
For some reason,
ssh-keygen -R
doesn't always work for me. But the
sed
command does.
no comments |
post comment
see also:
Linux
CAA
snipsnap-index
Client Setup
debug+s...
Debug+S...
snipsnap-notfound
Ping Stats Witho...
start
Force+NFS...
Fixing ...
Force NFS...
Debug S...
snipsnap-search
Examp...
force+nfs...
Defaul...
debug s...
linux
Examp...
Virtual Dave
Megaplex:
Home Page
This wiki's
start
page
Send Feedback To Dave
(read this
note about local search
)
Logged in Users: (0)
… and 4 Guests.
Recently Changed
nmap
Seconds Since Epoch to Local Time
Link Monitor
DH group to OAKLEY_GROUP table
Fire Eater
start
FortiClient Error Codes
Scan For Newly Added Disk
dhparams Generation
SSL Certificate Bundles
ufw
Grow A LVM Partition
Creating Users
whoami
list databases
DH Selection For IPsec VPNs
2023
2022
2019
2018
2017
2011
2010
2008
2001
2000
1999
1991
Custom '77 Dodge Van
Bone Shaker
Editing:
snipsnap-help
,
Image Macro
(
Et auditum est, et idcirco ego nunc simulare
)
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.
Useful:
snipsnap-help
snipsnap-macro-help
Google
snipsnap.org
| Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt