Search Results

Search: Posts Made By: ab2zu
7,939
Posted By ab2zu
This seems to work: #!/usr/bin/perl ...
This seems to work:

#!/usr/bin/perl

use strict;
use warnings;

use Getopt::Std;

our $opt_c = '';

getopt('c');

die "Error: must specify a comma-separated list of columns...
3,403
Posted By ab2zu
I like the gnu sed even better.. very simple and...
I like the gnu sed even better.. very simple and clean
1,575
Posted By ab2zu
Do you mean something like this? for i in 1...
Do you mean something like this?

for i in 1 2 3 4 5
do
echo "processing file${i}"
some_command "$file${i}"
done$i (or ${i}) is still available as a digit if you need it...
3,403
Posted By ab2zu
I kinda like this: echo...
I kinda like this:

echo "EDW_WHOLESALE_VORTEX" | perl -pe 's/([a-zA-Z])/[\u$1\l$1]/g'
[Ee][Dd][Ww]_[Ww][Hh][Oo][Ll][Ee][Ss][Aa][Ll][Ee]_[Vv][Oo][Rr][Tt][Ee][Xx]TMTOWTDI!

Nathan
Showing results 1 to 4 of 4

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