Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Saving Perl scrpits in a UNIX Shell Post 3055 by hagrid on Tuesday 19th of June 2001 04:08:40 AM
Old 06-19-2001
im using pico, i already figured it out though, thanx
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Saving of UNIX based e-mail on to local disks

Dear friends, Someone please let me know how to store e-mail on local hard disk or floppy disks. I am using UNIX based PINE e-mail programme and the copy of this mail I wanted to store it in my local disks. Thanks in advance. Regards, Rajan (4 Replies)
Discussion started by: rajan9
4 Replies

2. UNIX for Dummies Questions & Answers

saving from unix into pc

hi, i access unix through secure shell (SSH) from my pc running on windows. Can i save files from unix directly into windows-run pc?. e.g. vi files into notepad??? thanks alot, -a (6 Replies)
Discussion started by: alikun
6 Replies

3. Shell Programming and Scripting

Saving output from awk into a perl variable

How would I pass awk output to a perl variable? For example, I want to save the value in the 4th column into the variable called test. My best guess is something as follow, but I am sure this isn't correct. $test = system("awk '/NUMBER/{print \$4}' $_"); (8 Replies)
Discussion started by: userix
8 Replies

4. Shell Programming and Scripting

saving values from awk expression into shell array

hi i am trying to save the values i extract from a file with the help of awk in a bash shell array. i have: exec 10<file2 while read LINE <&10; do ARRAY1=$(awk '{print $1}' file2) ((count++)) done echo ${ARRAY1} it prints just blank lines. file1 has two columns and i... (4 Replies)
Discussion started by: npatwardhan
4 Replies

5. UNIX for Dummies Questions & Answers

Editing & Saving using shell script

Hi, OS: Unix, linux, hp-unix (all unix flavours) Iam trying to change some string values, special characters or otherwise in a file. As of now, i go using vi <filename>, open the file and do the edit manually and save it. Is it possible to write a shell script so that i just run the script... (4 Replies)
Discussion started by: kenkanya
4 Replies

6. Shell Programming and Scripting

Linux/Unix shell scripting vs Perl

Hi, I have general question: i have good working Perl script with .pl extension, and now I have to migrate all to another Linux box, and I was told that I can use only shell scripting, so I'm not sure how different those two things are, will it work without any changes . Is there anything smart I... (6 Replies)
Discussion started by: trento17
6 Replies

7. Shell Programming and Scripting

Outputfile is not saving - Perl solved

Dear all I have this perl script where it also linked R script but the outputfile (anchorresult.temp)is also disappearing after I got the R figure. Do you guys know how to preserve the file #!/usr/bin/perl $anchorfile=&QQQ("Anchor file (include the path):"); $anchortype=&QQQ("Anchor type... (0 Replies)
Discussion started by: quincyjones
0 Replies

8. Shell Programming and Scripting

Need to access Oracle DB with shell/perl script in Unix

Hi, We need to access Oracle DB with shell/perl script in Unix. Is Oracle client needed in Unix for this. I have seen threads which tell abt using SQL plus to access Oracle tables. Can we access DB without SQL PLus installation using scripts in UNix like we access DB using jar files in Java .... (1 Reply)
Discussion started by: justinacc
1 Replies

9. Shell Programming and Scripting

shell script for saving oracle database records in variable

i want to retrieve value in each column of each row in sql plus and save them into array variable and echo the value in array variable (2 Replies)
Discussion started by: ramish
2 Replies

10. Shell Programming and Scripting

Problem saving return value of subroutine in perl

Hi all, I have this code #This program read the triplets from file named "data" into #an array of array. use strict; use warnings; use Data::Dumper; use Graph; use Graph::Subgraph; my @S; while (<>) { push @S, ; } print "-----TRIPLETS-------\n"; print Dumper \@S; #Make... (6 Replies)
Discussion started by: rushadrena
6 Replies
ExtUtils::Command(3pm)					 Perl Programmers Reference Guide				    ExtUtils::Command(3pm)

NAME
ExtUtils::Command - utilities to replace common UNIX commands in Makefiles etc. SYNOPSIS
perl -MExtUtils::Command -e cat files... > destination perl -MExtUtils::Command -e mv source... destination perl -MExtUtils::Command -e cp source... destination perl -MExtUtils::Command -e touch files... perl -MExtUtils::Command -e rm_f files... perl -MExtUtils::Command -e rm_rf directories... perl -MExtUtils::Command -e mkpath directories... perl -MExtUtils::Command -e eqtime source destination perl -MExtUtils::Command -e test_f file perl -MExtUtils::Command -e test_d directory perl -MExtUtils::Command -e chmod mode files... ... DESCRIPTION
The module is used to replace common UNIX commands. In all cases the functions work from @ARGV rather than taking arguments. This makes them easier to deal with in Makefiles. Call them like this: perl -MExtUtils::Command -e some_command some files to work on and NOT like this: perl -MExtUtils::Command -e 'some_command qw(some files to work on)' For that use Shell::Command. Filenames with * and ? will be glob expanded. FUNCTIONS cat cat file ... Concatenates all files mentioned on command line to STDOUT. eqtime eqtime source destination Sets modified time of destination to that of source. rm_rf rm_rf files or directories ... Removes files and directories - recursively (even if readonly) rm_f rm_f file ... Removes files (even if readonly) touch touch file ... Makes files exist, with current timestamp mv mv source_file destination_file mv source_file source_file destination_dir Moves source to destination. Multiple sources are allowed if destination is an existing directory. Returns true if all moves succeeded, false otherwise. cp cp source_file destination_file cp source_file source_file destination_dir Copies sources to the destination. Multiple sources are allowed if destination is an existing directory. Returns true if all copies succeeded, false otherwise. chmod chmod mode files ... Sets UNIX like permissions 'mode' on all the files. e.g. 0666 mkpath mkpath directory ... Creates directories, including any parent directories. test_f test_f file Tests if a file exists. Exits with 0 if it does, 1 if it does not (ie. shell's idea of true and false). test_d test_d directory Tests if a directory exists. Exits with 0 if it does, 1 if it does not (ie. shell's idea of true and false). dos2unix dos2unix files or dirs ... Converts DOS and OS/2 linefeeds to Unix style recursively. SEE ALSO
Shell::Command which is these same functions but take arguments normally. AUTHOR
Nick Ing-Simmons "ni-s@cpan.org" Maintained by Michael G Schwern "schwern@pobox.com" within the ExtUtils-MakeMaker package and, as a separate CPAN package, by Randy Kobes "r.kobes@uwinnipeg.ca". perl v5.18.2 2014-01-06 ExtUtils::Command(3pm)
All times are GMT -4. The time now is 11:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy