10 More Discussions You Might Find Interesting
1. Programming
Hi Techies,
I'm a newbie to PERL, Please help me with following problem.
I have an input text file like below
cat Input.txt
418673132,P
492538858,P
384535478,P
521522357,I
529435679,I
183617024,P
184414408,I
735510689,P
736238343,I
411642045,I
412690979,I
104232783,I (2 Replies)
Discussion started by: mahi_mayu069
2 Replies
2. Shell Programming and Scripting
First post on here. So I use csh shells for my research (physics... not a CS person). I am trying to rerun the same scripts, but there are ~10 files that have similar variables that I have to change for each different configuration, so I would like one central file for the variables I change that... (3 Replies)
Discussion started by: sabrepride
3 Replies
3. Shell Programming and Scripting
I have 3 programs, 1 in perl, 2 in csh: call them perl1, csh1 and run.ol
I need perl1 to set csh1 variable NOLOG_qsub = ""
I need perl1 to run, run.ol
run.ol takes the executable and input and outputs to output
run.ol#!/bin/csh -f
# run.ol executable input output
perl1 should... (1 Reply)
Discussion started by: austinj
1 Replies
4. Shell Programming and Scripting
I have a simple script that sets a value and reads the value in csh:
set -x
set a = 10
echo $a
The output of the script does not show the value of a
+ set a = 10
+ echo
any help would be great. (4 Replies)
Discussion started by: pt14
4 Replies
5. Shell Programming and Scripting
My shell is csh and it is required.
I have a file like sample.txt
------------------------
a b c
d
e
f
g h i
------------------------
I want set the file to a variable and print it out in the same format.
I have tried something like this, but not succed.
% cat ~/tmp/sample.txt
a b c
d... (8 Replies)
Discussion started by: anykao
8 Replies
6. Shell Programming and Scripting
Hello,
Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers.
INPUT:
ACTASS=
802
BASECOS=
279
COSNCHG=
3
CUSCOS=
52
UPLDCOS=
2
DESIRED OUTPUT:
ACTASS=802
BASECOS=279 (13 Replies)
Discussion started by: abacus
13 Replies
7. UNIX for Dummies Questions & Answers
Guys,
following is my issue:
------------------------
#!/bin/csh
# specify a counter
@ k = 1
# loop
while ($k < 3)
# read all text file with a specific number less than 3 in the last column of a record
foreach file ( *.txt)
# capture the line by passing the column... (1 Reply)
Discussion started by: znbhatti
1 Replies
8. UNIX for Dummies Questions & Answers
By using a csh, I want to address a variable content whose name is/matches the content of a given other variable.
i.e.
set name=´sam´
set ${name}_age=´27´
So, by typing: echo ${name}_age
I correctly obtain: sam_age
By typing: echo $sam_age
or echo ${sam_age}
I correctly obtain: 27
... (1 Reply)
Discussion started by: sobolev
1 Replies
9. Shell Programming and Scripting
Hi,
currently I'm trying to write a csh script that should do the following:
set i = 1
while ($i < 100) {
cp AAA BBB
set i = $i +1
}
where AAA is a string like this file.11.txt, file.21.txt, ...
and BBB is a string like this file_0001, file_0002, ...
Is it possible to... (1 Reply)
Discussion started by: sera1711
1 Replies
10. Shell Programming and Scripting
Hi All,
I am trying to put the csh variable into a perl.
In the below case, i am trying to put the csh variable "var" into my perl code. I tried to use '"$var"' but i don;t think it works.
Can anybody help me pls?
#!/bin/csh
set var = `echo "xxx"`
perl myperlcode.pl file
... (9 Replies)
Discussion started by: Raynon
9 Replies