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
, 2 years and 7 days ago. Viewed 639 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:
Client Setup
snipsnap-notfound
Ping Stats Witho...
start
CAA
Fixing ...
Force NFS...
Debug S...
snipsnap-search
Use Python...
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 2 Guests.
Recently Changed
Use User's Password As Enable Password
VPN Status
Startup Control
nbtstat for Linux
Additional Disk
SSH pubkey authentication
CLI Restore Configuration
Example nmcli Commands
tls
macwatch
mac address
BGP Sessions
BGP Neighbors
Unifi Controller
Show Known Wifi Passwords
docker
Remove Host ID
snmpd crash in "Check_HR_FileSys_AutoFs
execute command on hosts
facts
Grow A LVM Partition
FortiClient Error Codes
Test Authentication Server
2020
2019
2004
2001
virt-install
kvm briefly
Microsoft Office Whitelisting
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