Linux security
Malware
Tool: Lynis
System administration
File systems
Hardware
Kernel
Networking
Processes
Shell scripting
Software
SSH
System performance
Systemd
Web
Content and overviews
Abbreviations
Definitions
Glossary
Sitemap
Syscalls
Topics by category
Topics by tag
Command line
Cheat Sheets
Commands
About
Contact
Search
Linux Audit
Data processing
Data processing
Data processing: Frequently Asked Questions
Random data
Frequently Asked Questions
How to remove trailing whitespace from a file?
sed -i 's/[[:space:]]*$//' FILE
»
Full answer and more examples
How to insert a line at the beginning of a file?
sed -i '1i # New first line' FILE
»
Full answer and more examples
See all
frequently asked questions for Data processing