When I choose to print something out, I currently have the option "print to PDF." I'd like to make it so that I also have the option of "print to jpg." Is this possible? I know that I can convert PDF to jpg, but I have to do this very often, so it would be much more convenient to print directly to jpg.
Within AWK, how do you display a field of NR?
Hello all, I am working on a python script and this is what i have
Code:
from sys import argv
script, filename = argv
print "We're going to erase %r " % filename
print "If you don't want that, hit Ctrl -C (^C)."
print "If you do want that, hit RETURN."
raw_input("?")
print "Opening the file..."
target = open(filename, 'w')
print "Tr
Hello Everyone,
This 10th field is giving too much problem in AWK. How do i overcome ?
Perl Legends,
I am trying to debug below perl script. Till "h1" and "h2" the value in variable is initialized.
Dear All,
Code:
perl -e 'if($ARGV[0] =~ /\A^[0-9]{10}\z/){print "Valid string\n"}else{print "Invalid string\n"}' '1234567899'
Valid string
perl -e 'if($ARGV[0] =~ /\A^[0-9]{8}\z/){print "Valid string\n"}else{print "Invalid string\n"}' '12345678'
Valid string
individually both works, anyway to combine both together?
Code:
my %h = {};
$h{$ct} = {};
my $ct="a|b";
$h{$ct}->{'load'} = "load_check" if ($h{$ct} );
print "$h{$ct}->{'short'}\n"; #The value does not printed here however it should be print.
my $ct="c|d";
$h{$ct}->{'unload'} = "unload_check" if ($h{$ct} );
foreach my $ct (keys %h) {
print "$h{$ct}\n";
}
Can an
I have a file1.txt
file1.txt
Code:
F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true"
F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true"
U-12
I made one script in shell, but it is not running in my server. So i am trying to make perl for the same.