Foreach Vs for Vs while in perl
rajeshkumar created the topic: foreach Vs for Vs while in perl Definition 1: In the while loop, Perl reads a line of input, puts it into a…
Good Books on Perl
rajeshkumar created the topic: Good Books on Perl 1. Effective Perl Programming: Ways to Write Better, More Idiomatic Perl (2nd Edition) (Effective Software Development Series) Regards, Rajesh…
Setting Up Perl and CGI For Wamp Server WAMP(P)
rajeshkumar created the topic: Setting Up Perl and CGI For Wamp Server WAMP(P) chromicdesign.com/2009/05/setting-up-perl-for-wampp.html Test.pl/test.cgi #!C:\Perl64\bin\perl.exe # test.cgi by Bill Weinman [http://bw.org/] # Copyright 1995-2009 The BearHeart…
How to print two array with new line using a single print statement?
scmuser created the topic: How to print two array with new line using a single print statement? How to print two array with new line using a…
Perl Interview Questions and Answers
rajeshkumar created the topic: Perl Interview Questions and Answers What line of code is a valid hash literal? [first => ‘John’, last => ‘Smith’] {first => ‘John’,…
My Shell Script Usage Collection
sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find . -type f | wc –l Count…
How to read a .properties file through script
rajeshkumar created the topic: How to read a .properties file through script The easy way to do it is to note that a Java properties file has…
Shell script to run x times
rajeshkumar created the topic: shell script to run x times Problem: First i need to cd to this directory $SWDIR/util Second i need to run the following…
Whats the difference between running a shell scrip
scmuser created the topic: Whats the difference between running a shell scrip Whats the difference between running a shell script as ./script.sh and sh script.sh have a…
Perl commandline search and replace
rajeshkumar created the topic: Perl commandline search and replace Perl commandline search and replace The better option is using perl command line search and replace option. The…
Shell script merge two list and remove duplicates
rajeshkumar created the topic: shell script merge two list and remove duplicates You want all the records from list_A supplemented by all the records from list_B for…
Shell script for recursive delete required.
rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d “$1” ] then echo “Usage $0 dirname” exit…
Shell Script to delete a folder that is more then
scmuser created the topic: Shell Script to delete a folder that is more then Shell Script to delete a folder that is more then 1 week old…
Shell Script Run in Background
rajeshkumar created the topic: shell script run in background I wanted to run a particular shell program in a background and it should not be dependent on…
How to perl script to extract data
mnanjala created the topic: how to perl script to extract data Hi All, Below are the contents in the test.txt file id name adress 1 rajesh pune…
Command to start SMTP
scmuser created the topic: command to start SMTP Hi… To start SMTP service use the below command #/etc/init.d/sendmail start To stop the SMTP service use the below…
Copy only modified or added files using tar
scmuser created the topic: copy only modified or added files using tar Hi, i want to make a tar with only files which got added to modified…
/bin/tar: Removing leading `/’ from member names
scmuser created the topic: /bin/tar: Removing leading `/’ from member names Hi, When i run following script i get a error somthing like /bin/tar: Removing leading `/’…
Shell Bash Scripting: Assignment & Excercise – 18
scmuser created the topic: how to restore the dump file using shell scripting I have created a script file to dump the application files using the following…
Shell Script to Find All New Files Added
scmuser created the topic: shell script to find all new files added Hi, i am looking for a shell script to find all new files added or…
Shell Script Program 1
scmuser created the topic: shell script program 1 Device a script that takes a filename as argument ( which must exist in the current directory) and locates…
How to gunzip and untar all at once!
rajeshkumar created the topic: How to gunzip and untar all at once! How to gunzip and untar all at once! gunzip myfile.tar.gz tar -xvf myfile.tar INTO ONE…
Shell script program 2
scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include…
$# and $* Questions
scmuser created the topic: $# and $* questions If a script is run as foo -l -t bar [1-3], what are the values of $# and $*?…
Exit status of command
scmuser created the topic: Exit status of command What are the exit status of a command? what is its normal value and where is the value stored?…
tty terminals related script??
scmuser created the topic: tty terminals related script?? Develop script logic that allows only romeo and henry to execute a program, and only from the terminals tty05…
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…
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…
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…
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…
