Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uso:laboratoare:laborator-07:exercises [2022/11/15 22:08]
liza_elena.babu created
uso:laboratoare:laborator-07:exercises [2024/11/15 15:37] (current)
razvan.costea2205 [02. One liners] Update inkscape deprecated option
Line 66: Line 66:
 rm *.c rm *.c
 cp src/*.c . cp src/*.c .
 +</​code>​
 +
 +Putem să obținem numele fără extensie al unui fișier folosind comanda ''​basename''​ astfel:
 +<​code>​
 +uso@student:​~$ basename uso_1.c .c
 +uso_1
 </​code>​ </​code>​
  
Line 92: Line 98:
 Pentru a realiza conversia **tuturor** fișierelor din directorul curent folosim one liner-ul: Pentru a realiza conversia **tuturor** fișierelor din directorul curent folosim one liner-ul:
 <​code>​ <​code>​
-for i in *.svg; do inkscape --export-png=$(basename "​$i"​ .svg).png "​$i";​ done+for i in *.svg; do inkscape --export-filename=$(basename "​$i"​ .svg).png "​$i";​ done
 </​code>​ </​code>​
  
uso/laboratoare/laborator-07/exercises.1668542921.txt.gz · Last modified: 2022/11/15 22:08 by liza_elena.babu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0