Search Results

Search: Posts Made By: ilak1008
5,825
Posted By ilak1008
radoulov, Wow! Thank you so much for taking...
radoulov,

Wow! Thank you so much for taking time in explaining the code to me. More power to you and this forum. God bless and stay safe...
4,142
Posted By ilak1008
#! /bin/ksh str='grep 'string' filename | wc...
#! /bin/ksh

str='grep 'string' filename | wc -l'
if (($str >= 1)); then
sed 's/car/bus/g' file
else
exit 0
fi
19,312
Posted By ilak1008
Code: date | awk '{ print $2" ",...
Code:

date | awk '{ print $2" ", $3-1}'
3,063
Posted By ilak1008
See "man crontab".
See "man crontab".
5,825
Posted By ilak1008
Thanks radoulov! I'll wait for the explanation. ...
Thanks radoulov! I'll wait for the explanation. Thanks for your patience in helping me out.
5,825
Posted By ilak1008
Thanks, radoulov but could you please explain...
Thanks, radoulov but could you please explain your code further especially the for (k in K) if ((K[k]<6) && T[k] > 2) part? Cheers!
5,825
Posted By ilak1008
I want it "14 and 98 and 99". I'm so sorry but...
I want it "14 and 98 and 99". I'm so sorry but I'm new to array and looping, but I don't seem to understand the for (k in K) if ((K[k]<6) && (k in R)) part. Could you please elaborate further?
5,825
Posted By ilak1008
Opss, sorry about that. Yup, nawk in the script...
Opss, sorry about that. Yup, nawk in the script worked. Thanks!

One more question, I would like to show all lines with 14, 98, and 99, too. How would I do that?
5,825
Posted By ilak1008
Thank you for your explanation but I got the...
Thank you for your explanation but I got the following error messages after running the script:

awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 3...
2,294
Posted By ilak1008
Learn how to use visual editor or vi. It would...
Learn how to use visual editor or vi. It would surely help you a lot in editing text in shell scripting.
5,825
Posted By ilak1008
radoulov, Could you please explain your...
radoulov,

Could you please explain your script further?

Thanks!
5,825
Posted By ilak1008
Help on Awk
File contents:
1. 4 33 45 21 1 01:25:25
2. 4 33 45 22 1 01:25:25
3. 4 33 45 23 1 01:25:25
4. 4 33 45 24 1 01:25:25
5. 4 33 45 25 1 01:25:25
6. 77 35 70 17 14 02:21:40
7. 77 35 70 18 14...
6,258
Posted By ilak1008
'©' in Unix is: Press Shift+Alt+0...
'©' in Unix is:

Press Shift+Alt+0 simultaneously.
6,258
Posted By ilak1008
Try this: grep '©' filename
Try this:

grep '©' filename
2,728
Posted By ilak1008
Hi Ygor, Sorry, it was just a typographical...
Hi Ygor,

Sorry, it was just a typographical error from my last message regarding those odd single quotes but in my script they are actually straight quotes. Anyway, I had to do the following long...
2,728
Posted By ilak1008
Ygor, I tried your suggestion as follows: ...
Ygor,

I tried your suggestion as follows:
a=1
b=2
c=3

Printf ‘ M = %s Ohms X = %s Ohms T = %s %%' $a $b $c

The above format worked fine but when a Command Substitution is used to...
2,728
Posted By ilak1008
Thanks, Ygor! That works.
Thanks, Ygor! That works.
2,728
Posted By ilak1008
Wrong Ouput when using printf under SFU
I used printf to print the following under SFU,

lrs=`cat lrs`
hrs=`cat hrs`
tp=`cat tp`
printf “\n\n%5sM = $lrs Ohms%5sX = $hrs Ohms%5sT = $tp %%\n\n\n” > file
cat file

With the above...
4,530
Posted By ilak1008
My ftp script works from Unix to Unix Box but not...
My ftp script works from Unix to Unix Box but not from Unix to using SFU. Anyway, is there a better way so as not to show an error in SFU if a file does not exist?
5,439
Posted By ilak1008
Thanks reborg!
Thanks reborg!
5,439
Posted By ilak1008
Thanks Gentlemen!
Thanks Gentlemen!
5,439
Posted By ilak1008
!! for ksh
Like C-Shell, is there a shortcut command for !! in Korn Shell? I tried to search the forum but no luck.
4,530
Posted By ilak1008
FTP using SFU
I'm trying to ftp a file from Solaris to Windows XP Pro using SFU and the command that I used is as follows:

ftp -n “host” << cmd
user “loginname” “password”
cd Directory
ls filename error...
7,514
Posted By ilak1008
Thanks ghostdog74, that works!
Thanks ghostdog74, that works!
7,514
Posted By ilak1008
Running KSH script In SFU
I tried to run my ksh scripts in SFU and it always says "not found" as in the example below:

$ .file
/bin/ksh: .file: not found

Did I miss something in the SFU Installation?
Showing results 1 to 25 of 57

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