0
votes
0answers
41 views

How to handle a list as argument in CSH file?

I have - for example - the following command to execute my CSH job: startPRE.csh 20120801,20120901,20121001 In the CSH script, I want to exectue a loop for every date in the list. $1 = ...
2
votes
2answers
512 views

Unix “time” command with pipeline prints no time-report

Of the two C-shell aliases below, only the first prints the time command's report of elapsed time. How can I get the alias with the pipeline to also print the time report? alias make1 'time make' ...
1
vote
0answers
239 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
1answer
469 views

csh cd alias: how to eliminate error when no parameter is supplied

I am familiar with bash, but my works require csh. in my .cshrc, I created this alias: alias cd 'cd \!:1; ls -l' It works very well except for one case: when I cd without any parameter: cd In ...
2
votes
2answers
3k views

How do I add a location to my path in Unix?

I am new to Unix. I am using a default installation of FreeBSD, with the C shell (csh). Suppose I have a command I can run by executing this: /sbin/abc, but cannot run by executing abc. How can I set ...
0
votes
1answer
823 views

getting error while doing cat command “Ambiguous output redirect.”

while executing cat test.txt | java myfile > test1.txt 2> test2.txt I am getting error "Ambiguous output redirect." my java file contains System.out and System.err . I am in Unix csh ...
5
votes
6answers
4k views

How do I set $ variables in unix?

For example there is a long path that I cd to very often. How do I store the path in a variable so that I can use it everytime? For example: I wan to be able to do this cd $path instead of cd ...