Domanda molto simile a Come aggiungere più righe a un file con bash ma voglio iniziare il file con --, e anche aggiungere al file, se possibile. printf "--no-color\n--format-doc\n--no-profile\n" >> ~/.rspec-test Il problema sta iniziando il file con "-" mi dà un: -bash: printf: --: invalid option printf: usage: printf …
man su dice: You can use the -- argument to separate su options from the arguments supplied to the shell. man bash dice: -- A -- signals the end of options and disables further option processing. Any arguments after the -- are treated as filenames and arguments. An argument of …
Sono -namee -execopzioni o argomenti non-option find? Sembrano opzioni brevi e vengono chiamate espressioni, se non sbaglio. Per esempio, find . -name "*.txt" -exec echo {} \;
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.