7
Need help in parsing an input in perlview story

http://www.unix.com – I am executing a command it is returning me something like this Code: name ip port ------------------------------------ http-listener-1 * 6712 http-listener-2 * 8709 I have a subroutine getListenerName($porttobeChecked) This subroutine returns me the name of the listener if i pass a port. (HowTos)

7
Fetch Data from File using UNIX or Perlview story

http://www.unix.com – Hello, How All are Doing today. (HowTos)

7
Perl: How to check whether my array contains element xview story

http://www.unix.com – Hi All, I am new to perl I am stuck in simple problem I need your help I want to define a subroutine. sub check_if_entity_exists(@array_to_be_checked,$entityName) I have array as http-listener-1 http-listener-2 http-listener-3 http-listener-4 If i send http-listener-3 my subroutine should return me true and false if the array doesn't contain the element (HowTos)

7
how to escape my string when I calling a shell commend in perl?view story

http://stackoverflow.com – I just want to use a awk command in my perl script like follows: $linum = `awk -F "%" '/^\s*kernel/{print NR}' < $grubFile`; But it will say: Unrecognized escape \s passed through at ./root line 36. How do I avoid that? thank you. (HowTos)

8
How To Back Up MySQL Databases With mylvmbackup On Ubuntu 12.10view story

https://www.linux.com – How To Back Up MySQL Databases With mylvmbackup On Ubuntu 12.10 mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM's snapshot feature to do so. To perform a backup, mylvmbackup obtains a read lock on all tables and flushes all server caches to disk, creates a... mylvmbackup is a Perl script for quickly creating MySQL backups. It uses LVM's snapshot feature to do so. (Software)

7
Classpath of JAVAview story

http://www.unix.com – Hello, ABC question as I could not get a direct answer: How to locate the default IO class of JAVA? My question was triggered by the row in most java program Code: import java.io.* as I am very curious where the io class is located in my Mint14 (Ubuntu12.10). (HowTos)

7
Perl to fill the lost value with previous valueview story

http://ubuntuforums.org – For example, I have a text file consist of this number Code: (#ID #number) 1 0.062 742 -1.953 744 0.176 910 -2.000 913 0.164 The #ID is a sequence number. Can see that ID#2 to ID#741, ID#743, ID#745 to ID#909, ID#911 to ID#912 are not recorded. (Hardware)

7
Oneliner ---split string to character by piping shell output to perlview story

http://www.unix.com – Hello, I was trying to split a string to characters by perl oneliner. Code: echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe: Code: echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq  -ic Code:       8        1 T     &nb (HowTos)

7
linux/solaris + verify duplicate valid IP address from fileview story

http://unix.stackexchange.com – what the best way to find duplicate IP from file ( I have ksh script in this script I need to write function that check for duplicate IP ) for example if IP - 192.1926.23.52 exists twice in file - config_IP.txt then need to print "duplicate IP - xxx.xxx.xxx.xxx" solution can be with ksh or perl one liner , sed ,awk etc the format of the file should be as the following: more config_IP.txt (HowTos)

7
Problem of Perl's "join" functionview story

http://www.unix.com – Code: $ perl -e '@f=("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","1","911"); print join("\t",@f)."\n";' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa        1911 Why is t (HowTos)