Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 2 odgovora
  • 3.415 pregleda

Najnovija ↓

Vadjenje firefox ext. 13.03.2007. u 16:03 · pre 239 meseci #1
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.
Potpis
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.”
Re: Vadjenje firefox ext. 13.03.2007. u 20:28 · pre 239 meseci
izmenjeno 1 put, poslednji put stale85 13.03.2007. u 21:04
  1. stale8513.03.2007. u 21:04zapis iz teksta poruke
#3
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 :D.
Potpis
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.”
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme