Fancy your Linux skills ? Take this challenge and answer these simple 5 questions on Linux Shell Scripting.
Update : Added solutions
Update : Added solutions
- What command(s) would you use to extract the 3 words in the string “The boy laughed” ?
- What command(s) would you use to fetch only the 6th and 7th lines of a text file : poem.txt
- What command(s) would you use to delete all empty/blank lines in a file : data.txt
- What does the following sed command do ? : sed -n ‘/[0-9]/p’ data.txt
- What command(s) would you use to count the number of files ending with .log in /var/log directory and also have the word “error” in their contents ?
No comments:
Post a Comment