Search Results

Search: Posts Made By: jazz8146
9,081
Posted By jazz8146
Yes you are right in both of your answers. I do...
Yes you are right in both of your answers. I do need to use *.*.* and it needs to compare against the value $2.
Thankyou I got it all working :)
9,081
Posted By jazz8146
Yeah i got it working eventually. However when i...
Yeah i got it working eventually. However when i try to use my script now it is telling me incorrect use.
So i type in
myscript file.* test.*
and i get "usage file1 file2" as if i am using it...
9,081
Posted By jazz8146
That's great i understand a lot better now :) ...
That's great i understand a lot better now :)
My usage is a lot better now i have done what you said but it does not like end of the if

syntax error near unexpected token `fi'
9,081
Posted By jazz8146
Hi, Thanks for the reply. I am still a bit...
Hi,
Thanks for the reply.
I am still a bit puzzled though. The code for the existing file i don't understand how to implement this. Here is the code i have already:

#!/bin/bash

case $# in
0)...
2,388
Posted By jazz8146
Ha Ha Silly me it was a typo! The script is...
Ha Ha
Silly me it was a typo!
The script is for files with extensions so when i was testing it yesterday i was using

q.1 q.2 q.3

not

q1 q2 q3 which has no file extensions so would not...
2,388
Posted By jazz8146
Yes i have tried this already. This does not give...
Yes i have tried this already. This does not give the error however does not rename the file where as yesterday when i did the
myscript q.* l.*
it would change the filename
:(
2,388
Posted By jazz8146
What Happened :(
Hello,

I have created a dosrename script and it was working fine unitl today. I can't think what i have changed (don't think i have to be honest). The error is when i run the script it says the...
9,081
Posted By jazz8146
case in script
Hello All,
I'll try to get it right this time lol

I am trying to do some validation on my script which renames files.
The ones i am struggling with are:


e.g.

1. myscript myfile myfile2 ...
1,291
Posted By jazz8146
Shell Script
I am being rather silly today oops
1,672
Posted By jazz8146
Shell Script Error
Sorry typo found please ignore
1,848
Posted By jazz8146
sorted1 sorted2 sorted3 sorted4 etc up to sorted14
sorted1 sorted2 sorted3 sorted4 etc up to sorted14
1,848
Posted By jazz8146
Removing Files
Hi,
This might seem like a really stupid question but i have created a shell script and at the end of the script i want to remove most of the file i create. So I have:

rm file[1-4] test[1-9]...
5
2,466
Posted By jazz8146
Join
Hi,
Is there a way to get join to join 2 files even if in one file one of the records does not exist?
i.e. 1st file
aaa 50
bbb 60
2nd file
aaa 40

So i want to join the 2 files together and...
2
awk
1,612
Posted By jazz8146
Thanks Tytalus :) I wasn't sure weather to post...
Thanks Tytalus :)
I wasn't sure weather to post my next Q in a new post as I have searched the forum for a solution but couldn't find it. Basically i want the numnbers to be rounded off to the...
2
awk
1,612
Posted By jazz8146
awk
Hello All,
I am trying to get the average of a set of numbers using awk. I only want to average the numbers on the first row of the file then put the average on the end of that row and then on to...
2,116
Posted By jazz8146
Your an absolute genius! It works perfectly!!!! ...
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...
2,116
Posted By jazz8146
Shell Sript
Hi All,

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...
5,992
Posted By jazz8146
I used this command and the result was blank....
I used this command and the result was blank. Here is the data i am using from a file.
13/11/07 $50 new shoes
Here is the command i have used
tr ' ' '\n' < a file | grep '^[[:alpha:]]' > temp...
5,992
Posted By jazz8146
Thanks a lot for the answers they really helped...
Thanks a lot for the answers they really helped and was easy to understand. What about if the file had dates, money and text? As in if you wanted to extract them three seperately, but all the...
5,992
Posted By jazz8146
Grep or Sed
Hi All,
I have created a bourne script that basically wants to split a file up in to different parts. I have this working if the file has all the information on different lines but if it doesn't...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 11:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy