Search Results

Search: Posts Made By: asak
4,485
Posted By durden_tyler
$ $ cat -n print_hoh.pl ...
$
$ cat -n print_hoh.pl
1 #!/usr/bin/perl -w
2 use strict;
3 my ($result, $name, $activities, $value);
4
5 # Subroutine section
6 sub build_hoh {
7 ...
10,397
Posted By itkamaraj
can you execute the below command and confirm,...
can you execute the below command and confirm, whether p4 is present.

If it is not there, then check where is your p4 command and use that absolute path

ls -l /u/userk/p4/p4_client/TES_DATE/p4
2,507
Posted By kalpeer
Under /var/www/html create a soft link to your...
Under /var/www/html create a soft link to your directory /home/user/test/
9,079
Posted By durden_tyler
It simply creates and prints an array, each...
It simply creates and prints an array, each element of which is a reference to an array of columnar data.

tyler_durden
9,079
Posted By durden_tyler
$ $ $ cat f23 TARGET DRIVE IO1 ...
$
$
$ cat f23
TARGET DRIVE IO1 IO2 IO3 IO4 IO5
------------ --------- --------- --------- --------- ---------
0a.1.8 266 ...
1,769
Posted By pravin27
perl -nle 'print $2 if /(.+?)\|(.*)/' filename
perl -nle 'print $2 if /(.+?)\|(.*)/' filename
2,698
Posted By michaelrozar17
Ok..Try echo...
Ok..Try
echo '/u/asak/DATE/TEST_LOGS/20110704_033429_2_shtest11_w_2_120/HDD/test11_w_2_12/hd-120' | sed 's/.*\/[0-9][0-9]*_[0-9][0-9]*_\([^/]*\).*/\1/'
3,678
Posted By bartus11
echo $DIR | perl -nle '/(\d+_\d+)([^\/]+)\/HD/;...
echo $DIR | perl -nle '/(\d+_\d+)([^\/]+)\/HD/; print $1'echo $DIR | perl -nle '/(\d+_\d+)([^\/]+)\/HD/; print $2'
4,603
Posted By birei
Hi, Try regexp in this script: use...
Hi,

Try regexp in this script:

use warnings;
use strict;

while ( <DATA> ) {
chomp;
printf "%s\n", $_ if /^\d+(?:\.\d{1,2})?$/;
}

__DATA__
10
10.0000
10.00
0.00001
0.1
1...
2,128
Posted By getmmg
Try this perl -pe 's/(.+HD)\/.*/\1/'
Try this

perl -pe 's/(.+HD)\/.*/\1/'
2,128
Posted By itkamaraj
we are simply replacing the HD..........(followed...
we are simply replacing the HD..........(followed by any number of characters) to HD

sed 's/\/HD\/.*$/\/HD/'

the above sed code looks for the string /HD/ and replace the /HD/.......... to /HD
5,480
Posted By alister
If you have it: pkill -t tty Regards, ...
If you have it: pkill -t tty

Regards,
Alister
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy