Create a bash shell script that removes all files whose
names end with a "~" from your home directory and
subdirectories. Name this script "cleanup.sh"
Answer Posted / somnath
#!/bin/bash
find /home -name "*~" | xargs rm
| Is This Answer Correct ? | 1 Yes | 1 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 chemistry?
Explain about non-login shell files?
Given a file find the count of lines containing the word "abc".
How many fields are present in a crontab file and what does each field specify?
Explain about login shell?
What is sudo command?
How to check if the previous command was run successfully?
How will you emulate wc –l using awk?
What does $@ mean in shell?
How to open a read-only file in the shell?
How can the contents of a file inside jar be read without extracting in a shell script?
wats the deinitions for shell utility and filter?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is a boot block?