Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Vadjenje firefox ext.

[es] :: Skript jezici :: Vadjenje firefox ext.

[ Pregleda: 2712 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

stale85
Stanislav Antic
Student
Sremčica

Član broj: 6670
Poruke: 120
*.ETF.BG.AC.YU.



Profil

icon Vadjenje firefox ext.13.03.2007. u 15:03 - pre 208 meseci
Zdravo, zelim da napravim bash skriptu koja sa ulazom extensions.rdf(~/.firefox/...) stampa koje extenzije se koriste.
Za sada sam uradio sl.

Code:

#!/bin/bash

grep $1 "NS1:name="

ali onda stampa sa NS1:name= linije. Interesuje me kako bi to mogao da uklonim "NS1:name=" sto stoji ispred.
Lepo bi mi dosla substitute commanda (s/NS1:name=//),...
Znam da shell skripta nije cudo, ali posto sam nov u ovome nemam ideju gde da pocnem.
Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what’s wrong.”
 
Odgovor na temu

Milan Andjelkovic
Product Manager
Tegus Medical
Beograd

Član broj: 4476
Poruke: 3281
*.eunet.yu.

Sajt: www.linkedin.com/in/milan..


+8 Profil

icon Re: Vadjenje firefox ext.13.03.2007. u 15:53 - pre 208 meseci
Verovatno si mislio grep "NS1:name=" $1, a ne grep $1 "NS1:name=" ?

U svakom slučaju:
grep "NS1:name" $1 | cut -d"=" -f2

ex.mangel
 
Odgovor na temu

stale85
Stanislav Antic
Student
Sremčica

Član broj: 6670
Poruke: 120
*.wireless.org.yu.



Profil

icon Re: Vadjenje firefox ext.13.03.2007. u 19:28 - pre 208 meseci
Jesam. Hvala ti, stvarno kul fora .
Code:

$grep "NS1:name" extensions.rdf | cut -d"=" -f2 | cut -d\" -f2

Sad mogu da ga sredim onako komplet .

[Ovu poruku je menjao stale85 dana 13.03.2007. u 21:04 GMT+1]
Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what’s wrong.”
 
Odgovor na temu

[es] :: Skript jezici :: Vadjenje firefox ext.

[ Pregleda: 2712 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.