I have four different files in four different directories.
Each file contains exactly the same format
logincode Forename Surname TutGroup Mark
Basically i want to grab all the marks from each file and put them onto the end of one login code by using a shell script. I can grab all the marks just by
cut -f 5 -d ' ' file1 file2 file3 file3
But then i want to add it on the end of the correct login code so i would have
logincode mark1 mark2 mark3 mark4
I have tried using join but can only do this for 2 files (i have 4) and it doesn't work if there is more than one record? i have tried
join -v 2 file1 file2 but this only displays record two.
Your an absolute genius! It works perfectly!!!!
I don't really understand it all fully though. Could you explain?
Also if you wanted to do it without loops how could this be done?
I know how to use awk to calculate an average number for the whole file but how could i do this for one line? For example
50 60 70 (average mark here)
40 30 20 (average mark here)
Thanks
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Hi Guys,
I am developing a script to monitor GUI based FileNet Component "Component Manager" which logs it's running status in a log file.
Log file is a huge file so in script I put last 300 lines of log file in seperate file and run script every 5 minutes.
I am searching the string... (2 Replies)
I have 2 date feilds
2011-05-13:18:45
2011-05-13:18:30
I need to compare them and say its OK/NOK
I tried this but dint work.
systime=2011-05-13:18:45
shubtime=2011-05-13:18:30
if
then
echo" OK"
else
echo "NOK"
fi
In this its not same so the o/p should be NOK (2 Replies)
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Hi
I tried with bash --login option. but the output is
siva:~$ bash --login
siva:~$
is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su )
Thx in advance
Siva (3 Replies)
perl script:
my $logdir = '/smp/dyn/logfiles/fsm/mp/mp';
$logdir = $logdir ."/mp${toDate}*";
i tried to make it..as below .. but not working ..
date +%m%d%y
logdir = /smp/dyn/logfiles/fsm/mp/mp
logdir=$logdir/mp"$date"
but it was not working.....
can someone please help me out in... (1 Reply)
Hi
I am looking for the script which can move 1month old data from a TXT file.actully in this file data is appended on daily basis.pleasehalp me out.
Here is the file content :
$head abc.txt.
20070301130052,xxz.
20070307132111,cvasjchgjhcg
gacg
chjbgasjkchjk.... (3 Replies)
Hi Folks. I am currently working on a script that has to spell check a file and print the output to the screen in 2 columns like this.
INCORRECT CORRECTION
whio who
weahter weather
The file will allow the user to override the ispell command and save any... (9 Replies)