Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.99 KB | None | 0 0
  1. pi@retropie:~/.attract $ testvar=$(grep -A 1 ^display attract.bak | grep -iv kodi | tail -n1)
  2. pi@retropie:~/.attract $ echo "$testvar"
  3.     layout               unified
  4. pi@retropie:~/.attract $ newvar="        layout               testdisplay"
  5. pi@retropie:~/.attract $ echo "$newvar"
  6.         layout               testdisplay
  7. pi@retropie:~/.attract $ sed -e "s/$testvar/$newvar/g" "attract.bak" | grep [[:blank:]]layout[[:blank:]]
  8.         layout               testdisplay
  9.         layout               testdisplay-favorites
  10.     layout               kodi
  11.         layout               testdisplay
  12.         layout               testdisplay
  13.         layout               testdisplay
  14.         layout               testdisplay
  15.         layout               testdisplay
  16.         layout               testdisplay
  17.         layout               testdisplay
  18.         layout               testdisplay
  19.         layout               testdisplay
  20.         layout               testdisplay
  21.         layout               testdisplay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement