Showing posts from January, 2021

Write a shell script to find sum of odd or even numbers

write a shell program that allows to enter a number and it find the sum of od…

Bash program to check if the Number is a Palindrome

Bash program to check if the Number is a Palindrome clear echo "enter a nu…

Bash shell script to find sum of digits

Bash shell script to find sum of digits  echo "enter the number" rea…

Write a script to check whether a given number is palindrome or not

Write a script to check whether a given  number  is  palindrome  or not echo &q…

simple calculator in unix shell script

Simple calculator in unix shell script echo " enter the value of a " …

Cat Command in Linux

cat - concatenate files and print on the    standard output SYNOPSIS    cat …

AWK Interview Questions And Answers

Question 1. How To Print Only Blank Line Of File.? Answer : sed -n '/^$/p&#…

Bash Shell scripting – Check if File Exists or Not

how to check file exist or not in unix echo "enter your file name" re…

how to check file exist or not in unix

how to check file exist or not in unix echo "enter your file name" r…

php email validation using regular expression

php email validation using regular expression <?php if(isset($_POST["s…

jQuery Introduction

jQuery Introduction The purpose of jQuery is to make it much easier to use Jav…

How to reverse a string in unix?

How to reverse a string in unix? echo "hello"  | rev Output'-   O…

Write a shell script to accept a string and reverse it without using rev() function, apply proper validation

Write a shell script to accept a string and reverse it without using rev() fu…

Write a shell script to find a file with maximum size in the current directory, also print the no of words, characters, and lines along with the content of file.

v alue=$(ls -S | head -1) echo $value wc $value cat $value

Write a shell script which works like a calculator

Write a shell script which works like a calculator(enter the values via comma…

how to create simple calculator using shell script in unix

echo "enter the value of a" read a echo "enter the value of b&…

C Program to add String without Concat()

#include<stdio.h> #include<string.h> void concat(char[], char[]); i…

write a menu driven script to list a file , copy a file, rename a file.

write  a menu driven  script to  list  a file  ,  copy  a  file, rename a  file…

Write awk script to print field 2,3,4 and 6 from test.txt which contain pattern "Unix"

Write   awk script to  print   field  2,3,4 and 6 from  test.txt  which contai…

String Sort Program in C

#include <string.h> #include <stdio.h> void shell_sort(char *chars,…

Shell Sort Program in C

#include <stdio.h> int main() {     int arr[30];     int i, j, k, tmp, nu…

Selection Sort Program in C

#include <stdio.h> int main() {     int array[100], n, c, d, position, sw…

Randomized Quick Sort Program in C

#include <stdio.h> #include <stdlib.h> #include <time.h> void…

Radix Sort Program in C

#include <stdio.h> #define MAX 100 #define SHOWPASS void print(int *a, in…

Quick Sort Program in C

#include<stdio.h> void swap(int a[], int left, int right) {     int temp;…

Merge Sort Program in C

#include<stdio.h> #define MAX 50 void mergeSort(int arr[], int low, int m…

Insertion Sort Program in C

#include <stdio.h> int main() {     int n, array[1000], c, d, t;     prin…

Heap Sort Program in C

#include<stdio.h> #include<limits.h> int heap[1000000], heapSize; v…

Bucket sort program in c

#include <stdio.h> int main() {     int num, N[10], x, y, z, temp;     pr…

Balloon sort program in c

#include <stdio.h> int main() {     int num, N[10], x, y, z, temp;     pr…

Bubble sort program in c

Bubble sort program in c  #include <stdio.h> int main() {     int array[…

C Program to Search an element in array

#include<stdio.h> int main() {     int a[30], ele, num, i;     printf(&q…

Types of OS

Operating systems are there from the very first computer generation and they ke…

Load More That is All