How to sort a result of Ls -l command based on columns. Ex.
i want to sort 5th column from output of ls -l command.
Answer Posted / vikas
ls -al | sort | cut -d ' ' -f 5
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
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); }
What is shell and shell script?
What is bash command used for?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How do I run a .sh file on mac?
Why do we use shell scripting?
What is the lifespan of a variable inside a shell script?
What is the crontab?
What is the difference between break and continue commands?
Is shell a part of kernel?
What language is bash written in?
What is the first line in every perl script called?
How to get the 3rd element/column from each line from a file?
How can you get the value of pi till a 100 decimal places?
Calculate a real number calculation directly from the terminal and not any shell script.