10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Guys,
I would like to ask you for a favor. Could you please help me how can I assign any number as the parameter to a, from stdin (-c), in the following command line by using the 'switch' in a script?
awk '$8>a {print "File name:" $5,$8}'
I would also appreciate if you can share any... (1 Reply)
Discussion started by: Padavan
1 Replies
2. Shell Programming and Scripting
I have 7 text files of varying sizes for each month of System Maintenance done during the 2013 calendar year (Jan. 134 jobs, Feb. 84 jobs, Apr. 594 jobs, May 158 jobs, July 69 jobs, Aug. 1 job, Oct. 102 jobs) and I have another text file which contains everything from those 7 files. Each of the... (8 Replies)
Discussion started by: CyberOptiq
8 Replies
3. Shell Programming and Scripting
HI,
I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this:
1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am unable to call one script from another script in c shell on windows SUA environment.
Please find below code ,
File1 āTmp.csh:
#!/bin/csh
setenv PATH "${PATH}:.:$TOP/bin:$TOP/RMBIN/bin:$GP_SUA/:$INTERIX_ROOT"
echo "hi1"
. /tmp1.csh
File2ātmp1.csh
... (6 Replies)
Discussion started by: gthangav
6 Replies
5. UNIX for Dummies Questions & Answers
Hi I am trying to put the following commands that i have to type manually at the cshell prompt into a cshell script startup.csh which is copied below
echo $DISPLAY
xhost +
rsh ba08lo01
module load incisiv/102/10.20.035
setenv DISPLAY $DISPLAY
When i run the script with source command... (2 Replies)
Discussion started by: kaaliakahn
2 Replies
6. Shell Programming and Scripting
Hi ,I have this simple code,why is not working
thanks
#!/bin/csh
set res=find ./ -name "*.bash" | wc -l
$res > result.txt (16 Replies)
Discussion started by: lio123
16 Replies
7. Shell Programming and Scripting
Hello everyone! i'm new in this forum and I'm here because I have a huge problem with a csh script. Here the problem: I have to write a script that check the system status, more precisely I have to check if there are processes with TIME > 3 hours and if such processes exists I must send a mail... (3 Replies)
Discussion started by: TheBeefEater
3 Replies
8. Shell Programming and Scripting
I've been searching the forums for info on reading a text file in a Cshell script but nothing I'm trying is working. My latest attempt was:
set LASInputFile = `ls *. | head -1`
echo $LASInputFile
while read line
do
echo $line
done < $LASInputFile
My error message is: while:... (7 Replies)
Discussion started by: phudgens
7 Replies
9. Shell Programming and Scripting
Experts,
I tried to make my cshell script interactive by asking the user for password and trying to read the input using the "read" command. I have been unsuccessful so far. Do you have any idea ?
Thanks
Jim (2 Replies)
Discussion started by: jimmynath
2 Replies
10. Shell Programming and Scripting
Hello,
I am a Newbie in ksh Unix Script.
So I must write a ksh/sh script who read character at a position in a File. So also it must read all the lines who belongs at these characters , then write these lines in a another File.
Can you help me , or give little councils to advance with my... (5 Replies)
Discussion started by: steiner
5 Replies