Search Results

Search: Posts Made By: asak
4,388
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,338
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,496
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,006
Posted By durden_tyler
$ $ $ cat f23 TARGET DRIVE IO1 ...
$
$
$ cat f23
TARGET DRIVE IO1 IO2 IO3 IO4 IO5
------------ --------- --------- --------- --------- ---------
0a.1.8 266 ...
9,006
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
1,759
Posted By pravin27
perl -nle 'print $2 if /(.+?)\|(.*)/' filename
perl -nle 'print $2 if /(.+?)\|(.*)/' filename
2,680
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,665
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,593
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,102
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
2,102
Posted By getmmg
Try this perl -pe 's/(.+HD)\/.*/\1/'
Try this

perl -pe 's/(.+HD)\/.*/\1/'
5,438
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 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy