Search Results

Search: Posts Made By: psynaps3
2,245
Posted By psynaps3
Sorry for the bump again...
Sorry for the bump again...
2,245
Posted By psynaps3
Bump... Anyone?
Bump... Anyone?
2,245
Posted By psynaps3
KSH n FTP query
Hi,

I have this slightly modified FTP code (thanks to this forum)

function gather_FTPDate {
HOST=
USER=
PASSWD=

exec 4>${TEMP_LOG_FILE}
ftp -nv >&4 2>&4 |&

echo $?

if [[ $?...
23,612
Posted By psynaps3
Formatted output in KSH
Hi,

Is there some way to get formatted output in ksh? Something like a properly alligned tabular format. I tried adding '\t' to echo statements, but it doesn't come properly alligned


'hello' ...
9,602
Posted By psynaps3
Tried the below and it seems to work. Any idea...
Tried the below and it seems to work. Any idea why '+' doesn't work as intended? (1 or more)

if [[ ${COMP_TEMP} = [0-9]* ]] then


Thanks
9,602
Posted By psynaps3
Thanks, but that ain't going to work cause both 1...
Thanks, but that ain't going to work cause both 1 and ? are two bytes each.

The variable can either be a number from 1-30 or it can be some other character. I want the if loop to be a success only...
9,602
Posted By psynaps3
Help with if loop (string comparison)
Hi

Can someone please tell me what is wrong with this (ksh)..


if [[ ${COMP_TEMP} = [0-9]+ ]] then
echo ${COMP_TEMP}
fi


What i need here is, say if the variable is a 1 or 2 digit...
6,214
Posted By psynaps3
grep and ksh
Hi,

Can someone please help me with the below query,

I have a list of country codes in an array 'tempCountry'. I need to search for the occurence of the string "[countryCode]" in a log.
eg:...
Showing results 1 to 8 of 8

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