Using set -A write a script to print the output of the ls
command in 5 columns with two spaces between each column.
Pretend that ls does not have multicolumn output.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Shell Script Interview Questions

Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

0 Answers   Cap Gemini, Wipro,


What are types of shells?

0 Answers  


wats the she bang statment with syntax?

3 Answers  


Is cmd a shell?

0 Answers  


write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?

6 Answers   IBM, Wipro,






What is shell geeksforgeeks?

0 Answers  


What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


What are "c" and "b" permission fields of a file?

0 Answers  


What does it mean to debug a script?

0 Answers  


Can shell script run on windows?

0 Answers  


How will you list only the empty lines in a file (using grep)?

4 Answers   ANZ,


How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.

5 Answers   Wells Fargo,


Categories