
Write a program that prints its argument with each space widened up to the next tab stop, with a stop every 8 columns.
./tab_expand "a b" | cat -ea b$./tab_expand "cursor found another shortcut" | cat -ecursor found another shortcut$./tab_expand "abcdefgh next" | cat -eabcdefgh next$./tab_expand | cat -ewrong number of arguments$tab_expand.cwrite
Run the tests to grade your code
Write a program that prints its argument with each space widened up to the next tab stop, with a stop every 8 columns.
./tab_expand "a b" | cat -ea b$./tab_expand "cursor found another shortcut" | cat -ecursor found another shortcut$./tab_expand "abcdefgh next" | cat -eabcdefgh next$./tab_expand | cat -ewrong number of arguments$tab_expand.cwrite
Run the tests to grade your code
Memory will appear here