Question 1
Write a SED script,
- To insert a line
# FUNCTION DEFINITIONwhen the worddefis found and that line should be shifted down. - To remove the line that has
# TODO
Write a SED script,
# FUNCTION DEFINITION when the word def is found and that line should be shifted down.# TODOWrite a SED script to replace all the colons : from input with tab character \t but when colon is preceded by backslash \: then it should be replaced with :
Write a script to print only the contents inside the multi-line strings from the python file named myscript.py
Note:
""" and ends with """= before starting """ and there can be spaces in-between them.""" and before """ in the same line.Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
The IIT Madras BS System Commands (System Commands) OPPE 2 paper sat on Sept 2022, in the September 2022 term (T3 2022): 8 questions for 130 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | System Commands OPPE 2 Sept 2022 at a glance |
|---|---|
| Term | September 2022 term (T3 2022) |
| Subject | System Commands |
| Course code | BSSE2001 |
| Questions | 8 |
| Marks | 130 |
| Duration | 180 min |
| Programming | 8 |
| Official paper | OPPE 2, Sep 2022 |
| Negative marking | No negative marking. |
| Updated |