Df and Du issues with script

scmuser created the topic: df and du issues with script A script named test containing the df and du commands displays nothing when executed. Why does that…

Read More

Grep and Sed Questions with Shell script

scmuser created the topic: grep and sed questions with shell script Search for a pattern with grep and sed and look for a file with find. Test…

Read More

Character validation in shell script?

scmuser created the topic: character validation in shell script? Write shell code to accept a string from the terminal, and echo a suitable message if it does…

Read More

Find absolute path name of a file

scmuser created the topic: Find absolute path name of a file Use expr to extract the parent directory from the absolute path name of a file Rajesh…

Read More

Find Last Modification Time of File

scmuser created the topic: find last modification time of file Write a script that accepts a filename as argument and displays the last modification time if the…

Read More

Identical file validation using shell script?

scmuser created the topic: identical file validation using shell script? Device a script that accepts two directory names, bar1 and bar2, and deletes those files in bar2…

Read More

Find c file Recursivly and Copy to Directory

scmuser created the topic: find c file recursivly and copy to directory Write a shell script to find c file recursivly and copy to one common directory?…

Read More

Remove blank line using Grep and sed

scmuser created the topic: Remove blank line using Grep and sed Hi, How do you remove blank line using grep and sed in shell scripting? rajeshkumar replied…

Read More

Find command return type

scmuser created the topic: Find command return type I am looking for following answer if anybody can help me out… How to Return a message when a…

Read More

Nested for loop in Linux Shell Script

scmuser created the topic: Nested for loop in Linux Shell Script As you see the if statement can nested, similarly loop statement can be nested. You can…

Read More

Find a Number of File in Directories Recursively

scmuser created the topic: find a number of file in directories recursively I have several directories and files underneath…how to find only files from all directories… any…

Read More

Shell script that will add two nos, which are supplied as command line

scmjobs created the topic: Shell script that will add two nos, which are supplied as command line How to write shell script that will add two nos,…

Read More

Find out biggest number from given three nos

scmjobs created the topic: Find out biggest number from given three nos Write Script to find out biggest number from given three nos. Nos are supplies as…

Read More

Write Script, using case statement to perform basic math operation

scmjobs created the topic: Write Script, using case statement to perform basic math operation Write Script, using case statement to perform basic math operation as follows +…

Read More

Shell Bash Scripting: Assignment & Excercise – 17

rajeshkumar created the topic: Shell script that will add two nos How to write shell script that will add two nos, which are supplied as command line…

Read More

Script to find out biggest number from given three nos

rajeshkumar created the topic: Script to find out biggest number from given three nos Write Script to find out biggest number from given three nos. Nos are…

Read More

Write script to print nos as 5,4,3,2,1 using while loop

rajeshkumar created the topic: Write script to print nos as 5,4,3,2,1 using while loop Write script to print nos as 5,4,3,2,1 using while loop. #!/bin/bash # #…

Read More

Write Script, using case statement to perform basic math operation as

rajeshkumar created the topic: Write Script, using case statement to perform basic math operation as Write Script, using case statement to perform basic math operation as follows…

Read More

Write Script to see current date, time, username, and current directory

scmjobs created the topic: Write Script to see current date, time, username, and current directory Write Script to see current date, time, username, and current directory??? rajeshkumar…

Read More

Write script to print given number in reverse order

rajeshkumar created the topic: Write script to print given number in reverse order Write script to print given number in reverse order, for eg. If no is…

Read More

Write script to print given numbers sum of all digit,

rajeshkumar created the topic: Write script to print given numbers sum of all digit, Write script to print given numbers sum of all digit, For eg. If…

Read More

List of Example Shell script can be found

rajeshkumar created the topic: List of Example Shell script can be found www.it.uom.gr/teaching/linux/lsst/scripts/q7 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied the topic: Re: List of…

Read More

Find and display files last modified les than 90 days ago

rajeshkumar created the topic: Find and display files last modified les than 90 days ago Find and display files last modified les than 90 days ago. find…

Read More

Shell script to read file line by line

rajeshkumar created the topic: Shell script to read file line by line processLine(){ line=”$@” # get all args # just echo them, but you may need to…

Read More

Files modified on a certain date

scmuser created the topic: files modified on a certain date To find all files modified on a certain date, for example, ‘2007-06-07’ the final input is: find…

Read More

Shell script to Print only Size and file name using unix command.

rajeshkumar created the topic: Shell script to Print only Size and file name using unix command. Shell script to Print only Size and file name using unix…

Read More

Linux Tutorials: expect commands examples

scmuser created the topic: expect command in unix /linux? Hello, I am doing a project which asks me to enter password 4 times in a row. I…

Read More

How to find success/failure status of a command in different shells?

rajeshkumar created the topic: How to find success/failure status of a command in different shells? Ksh/Borne/Bash shell $ ls /usr/bin …. # when success value is 0…

Read More

String manipulation exercise

mnanjala created the topic: String manipulation exercise Hi Guys, Say there is a text file inject.dat, it has 5 entries as below PKGNAME=Project-debug OLD_VERSION=1.0.0 NEW_VERSION=1.0.1 PRODUCT NUMBER=1…

Read More

Linux Tutorials: Find Command Examples and Use scnario

rajeshkumar created the topic: Find Linux Command Collection Find files modified in the last 48 hours, and in current folder and one level below I believe the…

Read More