Sponsored Content
Full Discussion: If command in csh
Top Forums UNIX for Beginners Questions & Answers If command in csh Post 303034600 by abdossamad2003 on Tuesday 30th of April 2019 09:51:25 AM
Old 04-30-2019
If command in csh

hi everyone
what is difference between "if ( -e Arch )" and "if ( -e ./Arch )" in csh shell?


Many Thanks
samad

Last edited by abdossamad2003; 04-30-2019 at 11:51 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

csh and the set command

Hi, I am trying to write a csh script that will run another csh script, but redirect the output from the second script to an email. my code looks like this. #!/bin/csh ## This script is designed to run the SSM.sh ## then email the output to a specified email address ## it will also display... (2 Replies)
Discussion started by: jagannatha
2 Replies

2. Shell Programming and Scripting

csh -f and the at command

Hi everyone. I am new to the forums and new to Unix, so please pardon my beginner "status". In my company, we have a few C shell scripts, which we call BAT files (!). They all start with the usual "#/bin/csh" line to get it to run the .cshrc script which preloads the session with a lot of... (1 Reply)
Discussion started by: SpanishPassion
1 Replies

3. Shell Programming and Scripting

Is there any thing like this perl command is csh?

I mean this : perl -pi -e 's/OS/blah/g' *.c* The Great thing in such thing i dont need to rename orig then rename back when i do it with sed for instance inside csh shell , is there any way to avoid this with sed/awk/what ever? Thanks (4 Replies)
Discussion started by: umen
4 Replies

4. Shell Programming and Scripting

how to execute a sh command from a csh script

Hi everyone, I have a csh script that works fine but the output of an rsh command is different if I use boune shell instead cshell. Is there the possibility to execute only this command in bourne shell from a script declared cshell? Thanks Christian (2 Replies)
Discussion started by: bonovox
2 Replies

5. UNIX for Dummies Questions & Answers

Sed command over multiple lines in csh??

hi i have a long sed command in a csh script that won't fit on 1 line. how do i break it up correctly over multiple lines? this doesn't seem to work in csh: sed -e s/template/$IP.$NN/ \ -e s/NRG/6/ \ -e s/inputf/$IS.$NN/ \ -e s/SHIFT/10.0/ <template.egsinp > $IP.$NN.inp i get: sed:... (1 Reply)
Discussion started by: tuathan
1 Replies

6. UNIX for Dummies Questions & Answers

csh command not found

I get a "command not found" error when I run the csh command. I also get this error when I start a new session since my default shell is c shell. Any pointers as to what is going on? I am trying to set some paths using the .cshrc file and need to use the csh command for this. Thanks. (1 Reply)
Discussion started by: kannyg
1 Replies

7. Shell Programming and Scripting

AIX : Need help with <join> command in csh

Hi All, I need your hand to resolve an issue I am facing with a join command in one of the script. Please see the 3 files attached where file1 and file2 are the two files I am passing to the join command written in the command file. Prior to calling the join I am also sorting both the files on... (6 Replies)
Discussion started by: sraj142
6 Replies

8. Shell Programming and Scripting

trouble executing a command in csh

Hi All!! I am having trouble in executing the following command into a c-shell script. mv "$file" "$(head -1 "$file")" The funny thing is that the same command works perfectly from the command line, but when incorporated into a "foreach loop" of a c-shell script, it shows an error -... (1 Reply)
Discussion started by: chen.xiao.po
1 Replies

9. Shell Programming and Scripting

Help on command line argument in csh

HI , I am new to csh. I need to pass some command line arguments like ./abc.sh -os Linux -path abc -tl aa -PILX 1 I have defined the loop as shown below. But its taking "-os" switches as arguments. Its treating them as arguments. How to resolve it? while ( $#argv != 0 ) switch ($argv) ... (7 Replies)
Discussion started by: vineet.dhingra
7 Replies

10. UNIX for Beginners Questions & Answers

About echo command in csh

hi linux expert I want to print the following lines ( or similar) with the echo command in csh script. how to do it when the number of lines is high and the use of the \ symbol for each line is difficult? Thanks in advance samad 000 'iexpt ' = experiment number x10 (000=from... (4 Replies)
Discussion started by: abdossamad2003
4 Replies
Arch::Session(3pm)					User Contributed Perl Documentation					Arch::Session(3pm)

NAME
Arch::Session - access arch archives SYNOPSIS
use Arch::Session; my $session = Arch::Session->new; my $rev = 'migo@homemail.com--Perl-GPL/arch-perl--devel--0--patch-1'; my $log = $session->get_revision_log($rev); my $cset = $session->get_revision_changeset($rev); my $tree = $session->get_tree($rev); DESCRIPTION
Arch::Session provides an interface to access changesets and logs stored in arch archives. METHODS
The following common methods (inherited and pure virtual that this class implements) are documented in Arch::Storage: new, init, working_name, working_names, fixup_name_alias, is_archive_managed, expanded_revisions. archives, categories, branches, versions, revisions, get_revision_descs, expanded_archive_info, get_revision_changeset, get_changeset, get_revision_log, get_log. Additionally, the following methods are available: get_specified_changeset, clear_cache, get_tree, init_tree, my_id. get_specified_changeset arg Get changeset object (Arch::Changeset) by a user specified input. arg may be revision name, or changeset directory, or tree directory (then changeset for tree changes is constructed), and in the future local tarball filepath or remote tarball url. clear_cache [key ..] For performance reasons, most method results are cached (memoized in fact). Use this method to explicitly request this cache to be cleared. By default all cached keys are cleared; key may be one of the strings 'archives', 'categories', 'branches', 'versions', 'revisions' or 'revision_descs'. get_tree [{ options }] [revision [dir]] Construct a working tree for revision or working_name in dir. If dir is not specified, a new temporary directory is automatically created. Keys of options may be pristine, link, library, sparse, non_sparse, no_greedy_add; all are false by default. See "tla get". init_tree dir Run "tla init-tree" in dir. my_id [newid] Get or set "tla my-id". BUGS
No known bugs. AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel). SEE ALSO
For more information, see tla, Arch::Storage, Arch::Library, Arch::Name, Arch::Log, Arch::Changeset. perl v5.10.1 2005-11-14 Arch::Session(3pm)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy