Search Results

Search: Posts Made By: askari
1,565
Posted By disedorgue
Hi, you can use this way: $ cat in.txt ...
Hi,
you can use this way:
$ cat in.txt
Linux Unix Linux Windows SUN
MACOS SUN SUN HP-AUX
$ perl -sane 'foreach $i (@F) { $X{$i}+=1 } ; foreach $i (@F) {printf "%s ",$i if $X{$i}==1...
Forum: Programming 12-09-2011
1,786
Posted By otheus
my $start; my $last; while (<>) { if (...
my $start;
my $last;
while (<>) {
if ( /^U-\d+ UNIX (\d+)$/) {
if (!defined $start) {
$start = $1;
$last = $1;
next;
}
elsif (!defined $last || $1 > $last +...
Forum: Programming 07-30-2011
1,848
Posted By yazu
% echo 'Data-123 Linux MacOSData-124 windows...
% echo 'Data-123 Linux MacOSData-124 windows FreeBSDData-125 OpenBSD NetBSD' |
perl -ne 's/Data/\nData/g && s/\n// && print'
Showing results 1 to 3 of 3

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