715 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
  • linux - Insert multiple lines into a file after specified pattern using shell script - Stack Overflow

    Insert in place with regex:

    sed -e -i '/pattern/r file.txt' input.txt
    Thu 14 Dec 2017 01:40:52 PM CET - permalink -
    - - - https://stackoverflow.com/questions/22497246/insert-multiple-lines-into-a-file-after-specified-pattern-using-shell-script
    bash CommandLine Linux Qompoter sed
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation