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)

5
Easier way of installing Perl Modulesview story

http://ubuntuforums.org – Hi, May be people here already know it, but just wanted to share this. Ubuntu makes it real easy to install Perl Modules. All you need to do is open the Ubuntu Software Center and type the name of the module and it works !! For example, say you need to install the LibXML module. (Hardware)

5
Perl scripts can't be run from an aliasview story

http://serverfault.com – I created the following Alias in httpd.conf: alias /aliasedfolder /some/location/on/the/server/folder <Location /aliasedfolder> AddHandler cgi-script .pl Options +FollowSymLinks +ExecCGI Order allow,deny Allow from all AllowOverride None </Location> The problem is that i can view images within "aliasedfolder" but i am getting a "file does not exist" error when i run a perl (HowTos)

5
Linux + replace STRING/WORD in file according to ruleview story

http://unix.stackexchange.com – My target is to replace any word/string/Any characters in file with new word/string according to the following rules: If numeric characters on the left side of word/string then we not replace the word If numeric characters on the right side of word/string then we not replace the word remark - numeric means any number or [a-z] or [A-Z] The following Example described file before , and file a (HowTos)

5
How can one provide colour to tab completion in tcsh?view story

http://unix.stackexchange.com – (Crossposted from StackOverflow.com) This question and the answer teach us how to introduce colour into tcsh prompts. This webpage explains nicely how to get colour into any output of the echo command: > echo \\e[1\;30mBLACK\\e[0m BLACK > echo '\e[1;30mBLACK\e[0m' BLACK The word 'BLACK' in the example above is printed with a black (or darkgrey) foreground colour (depending on the overal (HowTos)

5
Script not spooling in result fileview story

http://www.unix.com – Hi everyone and nice to meet you :) I'm having some issues with a script I'm writing. It's probably most chaotic, I'm no ksh guru, but the idea is to extract an ID with that query, spool it into a file, and read that file making the ID a variable. This has to be done for every row extracted by function extractData Problem is, it doesn't spool. At all. (HowTos)

5
Why doesn't the output get redirected into the file?view story

http://unix.stackexchange.com – have the following command line that outputs vmstat every second with a time stamp on each line via the perl script: vmstat 15 | /home/Beer/addtimestamp.pl > File_1 the contents of the addtimestamp.pl: !/usr/bin/perl while (<>) { print localtime() . (HowTos)