Search Results

Search: Posts Made By: sujit_singh
3,366
Posted By Corona688
I'd test it character by character instead of...
I'd test it character by character instead of testing long strings. I'm not too fluent in perl, but hopefully the logic on this should be followable:

$ cat palindrome.awk
BEGIN { FS=""; ORS="";...
Forum: Programming 09-28-2011
2,400
Posted By itkamaraj
$ cat test ~dta.yunm shhshsgggssssjsksjs ...
$ cat test
~dta.yunm
shhshsgggssssjsksjs
sggsjshsjsjssss
shshshhshshshs

$ perl -lane 'print $_ if ($.==1); printf("%s",$_) if($. >1)' test
~dta.yunm...
Showing results 1 to 2 of 2

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