Search Results

Search: Posts Made By: woosaah
3,285
Posted By woosaah
cool that works, but my program doesnt the...
cool that works, but my program doesnt

the $1 was a file name and all i wanted to know was if it existed or not. but that doest want to work either. but i did learn something and that otherwise...
3,285
Posted By woosaah
cheers zazzybob, now it just seams to come up...
cheers zazzybob, now it just seams to come up with the error

iip[44]: cut -b54 $1: bad number

i have tried varing the number but that doesnt seam to be a problem if i use it on command line it...
3,285
Posted By woosaah
how to get one character
I just need to know how to get one character in a string

i tried
if [[ $# -eq 1 ]] && [[ cut -b54 $1 -ne 'X' ]]

but that didnt seam to work keep coming up that -b5 was unexpected.

i am not...
3,253
Posted By woosaah
i=0 while (( i < ${#SC })) do set...
i=0
while (( i < ${#SC }))
do
set $signofffiles/scan.batchno.${SC[$i]}.03.[0-9]*.signed.off
if [[ $# -eq 1 && -s $1 ]]
then
echo file from server $i is present, file name is $1
...
3,253
Posted By woosaah
ok, i have a small question. just what does ...
ok, i have a small question.

just what does

if [[ $# -eq 1 ]] && [[ -s $1 ]]

do? i am a bit new, and its not quite doing what i am askign it to do. i have an array of 5 items (0 -4) but...
3,253
Posted By woosaah
cheers ill try that next week, going on holiday...
cheers ill try that next week, going on holiday and no comp going with me. ill let you know how it goes
3,253
Posted By woosaah
Check for specific files
Ok, i have a problem and not sure how to tackle this one as of yet.

I will have this job running in the cron every 5 minutes, i need it to check a directory for 5 files. These files are put into a...
Showing results 1 to 7 of 7

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