Skip to main content

Questions tagged [syntax]

14 votes
2 answers
1k views

I of course realize the need to have something that separates the condition to the actual commands to be executed under the control statement, but why were it chosen to use both semicolon and a ...
skyking's user avatar
  • 492
2 votes
2 answers
387 views

I want to know if there is another alternative in Bash to execute multiple blocks when the pattern matches. I don’t want to use another command, if statements, or two or more separate case blocks or ...
ReflectYourCharacter's user avatar
0 votes
1 answer
122 views

So, i was given a task to implement simple version of cat utility. It should support some of GNU keys, for given text returns the same results as real cat utility and i was given this synopsis: cat [...
Mark's user avatar
  • 99
2 votes
2 answers
704 views

A bash command: $(System.DefaultWorkingDirectory)/yq_linux_amd64 '. *= load("${{ parameters.HELM_CHART_PATH }}/values/DEV/${{ parameters.COMPONENT }}.yaml")' ${{ parameters.HELM_CHART_PATH }}...
Mihir's user avatar
  • 47
0 votes
4 answers
144 views

There are two cases in which I do not understand why bash behaves as it behaves regarding syntax checking and asking for a newline. Case 1 bash can execute the line ( (ls) | cat), but depending on ...
Bastian's user avatar
  • 25
-5 votes
1 answer
73 views

After I wrote prompt $ sort display doesn't shown anything what the next step?
Wahyu Irawan's user avatar
0 votes
5 answers
194 views

What is the difference between using code $variable and ${variable}2 ? Example: file ='GLOBAL_AR_COLLECTOR_COMMENTS20240614ALYSSAB.TXT' prefix ='GLOBAL_AR_COLLECTOR_COMMENTS' In my shell script code ...
Celestica - Prabhahar Palanive's user avatar
3 votes
1 answer
259 views

GNU has long pushed for a combination of short options (-h) and long options (--help), which goes a long way to clearing up the syntactical mess of commands like tar and dd, with their legacy syntax ...
Popup's user avatar
  • 714

15 30 50 per page
1
2 3 4 5
14