I am creating a script to install gnome shell extensions
I get an issue to get the description from the info page
ie this one :
https://extensions.gnome.org/extension- ... rsion=3.14
if i use "| grep description" after a "wget" i get only the first line of the description
Some gnome shell extensions have a description on one line only, some not
Using the above url i get a result but i loose the layout of the description. i see only \n instead of new lines :
Code: Select all
cat gnome_shell_extensions/extn | grep -v "\"version" | grep -v "\"screenshot" | grep -v "\"creator" | grep -v "\"name" | grep -v "\"link" | grep -v "\"download" | grep -v "\"icon" | grep -v "\"uuid" | grep -v "\"pk" | sed 's/" /"/g' | sed 's/"description": //g' | sed 's/"//g'
usingA Gnome shell interface for todo.txt. \n\nTodo.txt is a future-proof syntax for tasks (not made by me)
for more info: http://todotxt.com/\n\nSome examples:\nTask: Basic task\n(A) Task: High priority task\nTask @project +context: Task is part of project and has a certain context\nx 2013-08-22 Task: Task was completed on the 22nd of August\n\nFor more info about the syntax: https://github.com/ginatrapani/todo.txt ... t\n\nQuick start:\nWhen you first enable the extension
chances are high you'll see a [X] in your top panel. If you click the [X]
you will be able to choose between creating the necessary files automatically or selecting your own existing files to be used with the extension.\n\nPlease use the issue tracker on the homepage to report bugs and/or file feature requests
this makes tracking easier for me. Thanks!\n\nSee the included CHANGELOG.md for info about changes between different versions
or see it online: https://bitbucket.org/bartl/todo.txt-ba ... ANGELOG.md
Code: Select all
sed 's/\n/\n/g' does nothing