write a shell script to emulate the Id command of PRIMOS
which lists files and directories.
It 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.
No Answer is Posted For this Question
Be the First to Post Answer
What can scripts do?
What are the advantages of shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
what is the difference between cmp and diff commands
How to print the first array element?
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
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.
What is sh in shell script?
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
What is a batch file used for?
Explain about "s" permission bit in a file?
What is a program shell?