Sector1379
23-12-2005, 11:51
Hallo zusammen
Ich stehe mal wieder vor einem kleinem Problem. Ich will aus einer Ausgabe von tar die erste Zeile also das Vereichniss extrahieren und dann weiter verarbeiten.
BSP:
tar xjvf conary-0.80.2.tar.bz2
conary-0.80.2/ <- Diese Zeile
conary-0.80.2/conary/
conary-0.80.2/conary/build/
conary-0.80.2/conary/build/buildinfo.py
conary-0.80.2/conary/build/Makefile
conary-0.80.2/conary/build/cook.py
conary-0.80.2/conary/build/filter.py
conary-0.80.2/conary/build/fixedglob.py
conary-0.80.2/conary/build/recipe.py
conary-0.80.2/conary/build/packagerecipe.py
Wisst ihr wie man das machen könnte in C? Also den tar Befehl rufe ich per system() auf.
Und wie man unschwer erkennen kann Programmiere ich das unter Linux.
Ich stehe mal wieder vor einem kleinem Problem. Ich will aus einer Ausgabe von tar die erste Zeile also das Vereichniss extrahieren und dann weiter verarbeiten.
BSP:
tar xjvf conary-0.80.2.tar.bz2
conary-0.80.2/ <- Diese Zeile
conary-0.80.2/conary/
conary-0.80.2/conary/build/
conary-0.80.2/conary/build/buildinfo.py
conary-0.80.2/conary/build/Makefile
conary-0.80.2/conary/build/cook.py
conary-0.80.2/conary/build/filter.py
conary-0.80.2/conary/build/fixedglob.py
conary-0.80.2/conary/build/recipe.py
conary-0.80.2/conary/build/packagerecipe.py
Wisst ihr wie man das machen könnte in C? Also den tar Befehl rufe ich per system() auf.
Und wie man unschwer erkennen kann Programmiere ich das unter Linux.