Search Results

Search: Posts Made By: shawi
13,105
Posted By shawi
I managed to increment the count of f using the...
I managed to increment the count of f using the below code. However, the count that it is displaying isn't correct; it is echoing 1. There has been more than one sql file replaced with a dash. Any...
13,105
Posted By shawi
Is something specific supposed to be entered...
Is something specific supposed to be entered after the bash? (above the warning)
13,105
Posted By shawi
I didn't know that would make a difference. ...
I didn't know that would make a difference.

Ran it again, same errors appear
13,105
Posted By shawi
which bash returns; /bin/bash is this...
which bash returns;

/bin/bash

is this correct?
13,105
Posted By shawi
Thanks for that info. Ran the above code and...
Thanks for that info.

Ran the above code and the following messages appeared;

ls: No match.
for: Command not found.
do: Command not found.
n++: Command not found.
done: Command not found....
13,105
Posted By shawi
Changed to bash, same Badly placed ()'s error...
Changed to bash, same Badly placed ()'s error appears

This is the code running;
#!/usr/bin/bash

echo WARNING : THIS DATA HAS BEEN SQLED

#finds all sql files in the home directory and...
13,105
Posted By shawi
This is running with csh, should have mentioned...
This is running with csh, should have mentioned that before:$

I've also tried to set n to 0 followed by @n = n + 1, but this doesn't work either
13,105
Posted By shawi
Thank you for the quick reply, appreciated. ...
Thank you for the quick reply, appreciated.

I get a 'Badly placed ()'s.' error when running the code above. Can I ask why it is 'n++' as opposed to 'n = n +1'?
13,105
Posted By shawi
foreach loop in unix script
Hi all,

I have a script which searches for all sql files in the current directory and replaces all sql files with an underscore with a dash. The next part I need to do is record the number of...
Showing results 1 to 9 of 9

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