|
Hi All,
I know that lot of us would get stuck while doing programming in Shell scripting or doing something in Linux. If you are badly in help and need to find an answer, you can make use of this page. Please post your questions on shell scripting in the comments box along with your email. Your questions will be answered and will be sent to your email. Please make use of this free service :)
Thanks,
Beneficial Knowledge
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. thanks. festina73@gmail.com
ReplyDeleteRegards
Here is the answer for your question @Fulgen
Deletehttp://waytobliss.blogspot.in/2012/10/linux-bash-scripting-how-to-modify-ls.html
write a shell script to emulate the Id command of PRIMOS which lists files and directories.
ReplyDeleteIt list files first with a header FILES and then directories with a header DIRECTORIES.
This command has several options. The main ones are.
-file select files only
-dir select directories only
-reverse sort in reverse order
-no_header put no header on the output
-brief output the header only
-size display the size of each file
-help display Id´s syntax and options.
You can write this script using getopts and functions. I will post the answer for this question in few days.
DeleteUsing (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 multi column output.
ReplyDeleteThe set verb does not have an option such as -A.
Delete