InterviewStack.io LogoInterviewStack.io

Shell Scripting and Automation Questions

Automating tasks with the command line: Bash and shell scripting, pipes and redirection, text processing, and writing custom tooling and monitoring scripts to glue systems together. Covers the scripting fundamentals infrastructure and platform engineers use daily, including automation-oriented use of general-purpose scripting. Distinct from application programming in its throwaway-to-durable tooling mindset.

EasyTechnical
23 practiced

Write a Python function detect_trailing_whitespace(path) that scans a given file path or directory and returns a list of files and line numbers containing trailing spaces or tab characters. Explain how your implementation handles binary files, very large files, different encodings, and how you would integrate this check into a pre-commit hook or CI pipeline.

That is every published Shell Scripting and Automation question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.