Hard
What does the following script return (disregarding possible errors)?
var=1 2>/dev/null
var=$var + 1 2>/dev/null
echo $var + 1 2>/dev/null
Author: titouan lecampStatus: PublishedQuestion passed 227 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Display lines containing 'Error' in all .txt files1
Which line deletes all files in a directory? (visible and hidden files)1
Find the default shell for a user in Bash1
What does the shell prompt `user@user:~$` mean?1
What does 2>&1 means in the script below?
```
compile "$i" > "${i%.txt}".ass 2>&1
```1
How to count the number of lines in a file in Bash1
Find all rows containing patterns 1 and 2 in a file using Bash