-
-
Shell Script Validate Password
Write a script to validate a password. The password should be least 8 characters long, should contain both alphabet and number, contain small cap and large cap letters. If any of these conditions are not met, the script should flag the password as "weak password".
-
-
-
Shell script
You have current directory containing set of directories which contain files.One file can reside in many directories.Write script which returns number of unique file names inall the subdirectories of a current dir.
-
Print nth column of pattern
How to print nth column of a pattern/file without using awk,cut commands?
-
Shell Scripting Commands
In shell scripting How to indentify that the previous command was run successfully?
-
-
Want to delete the record if I find a word (dd)in the fixed length(5-7).
Want to delete the record if I find a word (dd)in the length(5-7). Lets think that (5-7) length is FF2.
This is a fixed width file.
ex f1
ff1 ff2 ff3
sds dd fd
sd ss ew
dd dd se
o/p should be like
ff1 ff2 ff3
sd ss ew -
Delete Previous Line if Current Line Contains Particular Keyword
In UNIX delete previous line if current line contains particular keyword
-
Search Data DD/MM/YYYY HH:MM:SS
Search "DD/MM/YYYY HH:MM:SS" in a file & this format needs to provide input value while executing & remove all the content whatever is before the input value in a file
Eg : #myscript.sh 31/10/2015 10:15:22 -
Script to run every 10 mins once.
In bash scripting, write a script for the following requirements.
Script in the name of script1.sh. Run this script in every 5 minutes. Before executing second time verify first time executed command status whether it was executed success or not. -
-
Shell Script to Add File Extension
Write a small shell script that adds an extension ".new" to all the files in a directory.
-
Read JAR files
How to read the contents of fie inside jar without extracting in shell script?
-
-
-
-
-
Shell Scripting Interview Questions
Ans