Search Results

Search: Posts Made By: RedGrinGo
Forum: Programming 03-06-2011
2,200
Posted By RedGrinGo
Thanks. {solved}
my @arr = eval $str;
or
$str =~ s/(\d+)-(\d+)/join(",",$1..$2)/ge;
Forum: Programming 03-06-2011
2,200
Posted By RedGrinGo
Perl arrays and loop through array
Hi All

I need to get <STDIN> from a user. the <STDIN> is a range of number delimited by "," (comma) and can be with range delimited by "-".

Example: 1,2,3,4-9,12,15,34-36,70

Now I need to...
2,062
Posted By RedGrinGo
Perl | catching the letter 'Q' for exit.
Hi all,

I made a simple script with a prompt menu in Perl. All working good, but I want to add an option while the program is running that on every time when the user press 'Q' the program will...
2,124
Posted By RedGrinGo
What do you mean?? from user like ARGV[0..9]...
What do you mean??
from user like ARGV[0..9] or a small program in bash?
29,554
Posted By RedGrinGo
WORKING!!!
DUDE !!!

first, thanks a lot it works like a charm!
well this is so simple, i guess my brain works in the difficult way, i should change my way of thinking.

Thanks,
29,554
Posted By RedGrinGo
finding files with numbers in the file name???
Hello all,

New to this forum!

I got a Q: i want to find all files with numbers in the file name. e.g. blabla234.pm or fool654.pl

action i took:
ls | egrep '[0-9]+'
ls | egrep [0-9]
ls |...
Showing results 1 to 6 of 6

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