Skip to content

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
  • Perl

    Bareword “rajesh” not allowed while “strict subs” in use at

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Bareword “rajesh” not allowed while “strict subs” in use at Error: Bareword “rajesh” not allowed while “strict subs” in use at final.pl Solution: Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Bareword “rajesh” not allowed while “strict subs” in use atContinue

  • Perl

    Perl function to remove any element using value validation

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: perl function to remove any element using value validation perl function to remove any element using value validation Not Working – my @items = (rajesh1, rajesh2,rajesh3,rajes4,rajesh5,rajesh7) my $index = 0; for my $value (@items) { print “testing $value\n”; if ( $value == “rajesh1” or $value == “rajesh2” or $value == “rajesh3”)…

    Read More Perl function to remove any element using value validationContinue

  • Perl

    Delete an element from array based on custom duplicate value

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Delete an element from array based on custom duplicate value Hi, I am looking for some help in one scenario. Requirement: Through some validation, I have strored following kinds of value in one array. @array_name = (“Rajesh”,”Raju”,”Ram”,”John”,”peter”); Now I know from some background that “Rajesh”, “Ram”, “peter”, is duplocated entry so…

    Read More Delete an element from array based on custom duplicate valueContinue

  • Perl

    Delete line from string using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Delete line from string using perl Questions: Delete line from string using perl Delete entry from array based on custom duplicate value. How to delete lines that match certain pattern ============================ $info = ” This is Rajesh This is Ram This is test This is Raju ” Some solutions which i…

    Read More Delete line from string using perlContinue

  • Perl

    Remove the duplicate data from array using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Remove the duplicate data from array using perl Remove the duplicate data from array using perl Method 1 ============================================ sub uniqueentr { return keys %{{ map { $_ => 1 } @_ }}; } @array = (“perl”,”php”,”perl”,”asp”); print join(” “, @array), “\n”; print join(” “, uniqueentr(@array)), “\n”; Method 2 ============================================ sub…

    Read More Remove the duplicate data from array using perlContinue

  • Perl

    Foreach Vs for Vs while in perl

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 variable, and runs the body of the loop. Then, it goes back to find another line of input. But in the foreach loop, the line-input operator is being…

    Read More Foreach Vs for Vs while in perlContinue

  • Perl

    Good Books on Perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Good Books on PerlContinue

  • Perl

    Setting Up Perl and CGI For Wamp Server WAMP(P)

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 Group, LLC # Free Software: Use and distribution under the same terms as perl. use strict; use warnings; use CGI; my $version = “5.1”; print foreach ( “Content-Type:…

    Read More Setting Up Perl and CGI For Wamp Server WAMP(P)Continue

  • Perl

    How to print two array with new line using a single print statement?

    ByRajesh Kumar December 8, 2017February 1, 2025

    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 single print statement?

    Read More How to print two array with new line using a single print statement?Continue

  • Perl

    Perl Interview Questions and Answers

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Perl Interview Questions and Answers What line of code is a valid hash literal? [first => ‘John’, last => ‘Smith’] {first => ‘John’, last => ‘Smith’} %{‘first’ => ‘John’, ‘last’ => ‘Smith’} (first => ‘John’, last => ‘Smith’) ‘John’, ‘last’ => ‘Smith’> Answer – {first => ‘John’, last => ‘Smith’} How…

    Read More Perl Interview Questions and AnswersContinue

  • Shell Script

    My Shell Script Usage Collection

    ByRajesh Kumar December 8, 2017January 9, 2020

    sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find . -type f | wc –l Count Specific extention files in Directory and Subdirectory > find . -type f -name \*.mnp |wc –l Count only Directory > find . -type d | wc –l

    Read More My Shell Script Usage CollectionContinue

  • Shell Script

    How to read a .properties file through script

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 the same format as a basic shell script. However, there’s a trick to it. If you just run the properties file like so: sh appl.properties The assignments will…

    Read More How to read a .properties file through scriptContinue

  • Shell Script

    Shell script to run x times

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 either 4 times or 20 times ./swadm add_process 1 BG Y how can i put this in a script Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied…

    Read More Shell script to run x timesContinue

  • Shell Script

    Whats the difference between running a shell scrip

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 script that looks like this #!/bin/bash function something() { echo “hello world!!” } something | tee logfile I have set the execute permission on this file and when…

    Read More Whats the difference between running a shell scripContinue

  • Shell Script

    Perl commandline search and replace

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 syntax is the following. # perl -i.bak -p -e’s/old/new/g’ filename s/old/new/g what this does is searches for pattern “old” and replace it pattern “new”.The g option in does…

    Read More Perl commandline search and replaceContinue

  • Shell Script

    Unix command to find memory usage

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: unix command to find memory usage Monitor processes continuously. Updates every 3 seconds by default. Displays useful information such as total memory, memory in use, % of total memory used by each process, % cpu usage of each process, and process ID (PID) of each process. Type ‘h’ for help or…

    Read More Unix command to find memory usageContinue

  • Shell Script

    Shell script merge two list and remove duplicates

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 which there is not already a matching name in list A. Mathematically this is: A + B – {w in B | (w,value) in A } \ There…

    Read More Shell script merge two list and remove duplicatesContinue

  • Shell Script

    Shell script for recursive delete required.

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d “$1” ] then echo “Usage $0 dirname” exit 1 fi find “$1” -type f -print | while read file do dir=$(dirname “$file”) dname=$(basename “$dir”) fname=$(basename “$file”) [ “$dname” = “$fname” ] && rm “$file” done Regards,…

    Read More Shell script for recursive delete required.Continue

  • Shell Script

    Find Application Instance Directory In Unix

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: find application instance directory in unix How to find installed application directory in unix? rajeshkumar replied the topic: Re:find application instance directory in unix use Which command I mean which java which perl which ant which p4 which svn You will get location of the apps installed in your machine. Regards,…

    Read More Find Application Instance Directory In UnixContinue

  • Shell Script

    Shell Script to delete a folder that is more then

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 Hi all, i have this scritp set -x cd /var/log/ direc=”bkp_`date +%F`” mkdir $direc cp /var/log/*.log /tmp/bkp. — Here im ok, what i need is a scritp to…

    Read More Shell Script to delete a folder that is more thenContinue

  • Shell Script

    Shell Script Run in Background

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 terminal session of putty or telnet? Just finding solution? Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied the topic: Re:shell script run in background i found 2…

    Read More Shell Script Run in BackgroundContinue

  • Shell Script

    How to perl script to extract data

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 2 pravin puttur 3 bani banglore Now can anybody write perl script to extract data based on id ? Example if id is 1 it should print rajesh…

    Read More How to perl script to extract dataContinue

  • Shell Script

    Command to start SMTP

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 command #/etc/init.d/sendmail stop To know the status of the SMTP service use the below command #/etc/init.d/sendmail status

    Read More Command to start SMTPContinue

  • Shell Script

    Copy only modified or added files using tar

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 after some date or time.. Any help on this?

    Read More Copy only modified or added files using tarContinue

  • Shell Script

    /bin/tar: Removing leading `/’ from member names

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 `/’ from member names Script link: www.faqs.org/docs/securing/chap29sec306.html

    Read More /bin/tar: Removing leading `/’ from member namesContinue

  • Shell Script

    Shell Bash Scripting: Assignment & Excercise – 18

    ByRajesh Kumar December 8, 2017December 23, 2022

    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 script Code ============= #!/bin/bash #Full Day Backup Script #application folders backup now=$(date +”%d-%m-%Y”) #use 1 instead of 0 which is incremental backup dump -0f $now /var/www/html/* ============= using…

    Read More Shell Bash Scripting: Assignment & Excercise – 18Continue

  • Shell Script

    Starting sonar issues in linux

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Starting sonar issues in linux Hi, when I am starttign a sonar, I am getting following error… Any help? Starting sonar…./sonar.sh: line 490: /usr/local/sonar-2.2/bin/linux-x86-64/./wrapper: cannot execute binary file

    Read More Starting sonar issues in linuxContinue

  • Shell Script

    How to access windows share folder from linux

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: How to access windows share folder from linux Hi, Can you tell me How to access windows share folder from linux? Reagrs, scm scmuser replied the topic: Re:How to access windows share folder from linux I found solution 1: Press Alt+f2 and put following shared link such as smb://10.4.40.88/Share in the…

    Read More How to access windows share folder from linuxContinue

  • Shell Script

    Shell Script to Find All New Files Added

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 modified after a certain date & Time?? Any help? mnanjala replied the topic: Re:shell script to find all new files added This should solve the problem find ….

    Read More Shell Script to Find All New Files AddedContinue

  • Shell Script

    Shell Script Program 1

    ByRajesh Kumar December 8, 2017January 9, 2020

    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 from your home directory tree all path names of its links. The list should be mailed to self

    Read More Shell Script Program 1Continue

Page navigation

Previous PagePrevious 1 … 350 351 352 353 354 … 388 Next PageNext

© 2026 - WordPress Theme by Kadence WP

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
Search