Re: Bash vs Perl

2023-07-14 Thread karl
Willam Torrez Corea: > Can I mix bash with perl in a program? Yes, both ways; $ perl -e 'print "Hello World!\n"' Hello World! $ cat ls.pl #!/usr/bin/perl -w use strict; print `ls @ARGV` $ ./aa -r -t -l /usr | tail -4 drwxr-xr-x 35 root root 8192 Apr 20 21:24 lib drwxr-xr-x 2 root root 118784

Re: Bash vs Perl

2023-07-14 Thread Lars Noodén
On 7/14/23 19:05, William Torrez Corea wrote: - cd : Change the directory to a different location. - ls : List the contents of the current directory. - mkdir : Create a new directory. - touch : Create a new file. - rm : Remove a file or directory. - cp : Copy a file or dir

Fwd: Re: Bash vs Perl

2023-07-14 Thread Tim Lewis via beginners
On Jul 14, 2023, 11:33 AM, at 11:33 AM, Tim Lewis wrote: >Hi William, >I use crontab on my Ubuntu server to automatically run Perl scripts. >Will that work for you? >Tim >William Torrez Corea wrote: >Can I mix bash with perl in a program? >I want to create a program in Perl to execute the bash c

Bash vs Perl

2023-07-14 Thread William Torrez Corea
Can I mix bash with perl in a program? I want to create a program in Perl to execute the bash command. *Basic Bash commands (echo, read, etc.)* - cd : Change the directory to a different location. - ls : List the contents of the current directory. - mkdir : Create a new directory. -