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"
6 12808Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"
5 9606how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?
4 8147How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?
3 9444Post New Shell Script Questions
How can you get the value of pi till a 100 decimal places?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
Why is the use of shell script?
Explain about debugging?
What is the lifespan of a variable inside a shell script?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
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 are script files?
How do you find out What is your shell?
What is the syntax of "nested if statement" in shell scripting?
What is a command line shell?
What is a boot block?
Which is better perl or shell scripting?
Is powershell a bash?
Why is used in shell scripting?