Search Results

Search: Posts Made By: jimmyf
1,076
Posted By jimmyf
Expect Question
I'm using expect to log into a remote host and then execute another script. A log of the script is being created but I can't see to get the script to display while it's running. Any ideas would be...
1,180
Posted By jimmyf
Expect Question
Have an expect script but can't seem to de-bug it. It's stalling at the password prompt. If anyone can see a mistake, kindly let me know. Thanks.
Here is the error:
spawn ssh -o...
7,976
Posted By jimmyf
hey RudiC > cat file1 This is a line ...
hey RudiC

> cat file1
This is a line
Here is another line
This is yet another line
Here is a fourth line


> cat file2
TEST


> sed '1 {x; d; n}; G; s/\n/ /' file2 file1
sed: command...
7,976
Posted By jimmyf
hm command garbled. I'm on Solarice, wonder if...
hm command garbled. I'm on Solarice, wonder if there is something about that.
7,976
Posted By jimmyf
sed read contents of file and print value another file
Trying to use sed to insert the contents of a file into the end of each line in another file
file1

This is a line
Here is another line
This is yet another line
Here is a fourth line

...
1,577
Posted By jimmyf
awk print line with highest value
grepping on a value but then want to print only those lines that have the highest value in the 4th column

log text text R59FJ
log text text R63FT
log text text R60JX
log1 text text R63EA
log1...
569
Posted By jimmyf
thank you Yoda, I've never used multiple...
thank you Yoda, I've never used multiple instances of sort. Happy new year Cheers!
569
Posted By jimmyf
awk question
Trying to parse data with three columns. The 2nd and 3rd columns are not constant and there is a data stamp. Tried a few iterations of awk but can't seem to get the desired output.

This is the...
1,298
Posted By jimmyf
I figured out the answer. The Bash shell was...
I figured out the answer. The Bash shell was interpreting the variables not as part of the awk command. They needed to be commented out like this, see the awk command example:
expect \"~]$\" send...
1,298
Posted By jimmyf
Yes, I've tried that, didn't change anything.
Yes, I've tried that, didn't change anything.
1,298
Posted By jimmyf
Expect question
I have an expect script that appears to be working normally however for some reason, the remote side appears to be stripping off the variables from the awk command.

This is the original:
expect...
1,013
Posted By jimmyf
Adding Date Stamp To File Name With sed
trying to add a date stamp to the name of a file with sed. can't seem to comment out the date command so that sed does not only see it as a literal text string

this is what I'm trying
ls...
688
Posted By jimmyf
it works but I don't understand why
it works but I don't understand why
688
Posted By jimmyf
sed A Value In A Column
trying to replace a specific value in a column with sed. this is what I have but can't get it to work, replace dog with kitty if dog is in the 3rd column and bunny in the 1st column if bird is there...
1,399
Posted By jimmyf
Yes! Thank you Scrutinizer!
Yes! Thank you Scrutinizer!
1,399
Posted By jimmyf
Grep -o
Attempting to use egrep -o to return on a specific numerical value which would be two digits a dot then one digit (ex 25.2 or 4.3) Trying to use this format:
egrep -o...
1,465
Posted By jimmyf
Yes! It works, it is the other real life data I...
Yes! It works, it is the other real life data I am not showing in my example. Thanks guys.
1,465
Posted By jimmyf
I'm on Solaris, sort -k2 -k4nr file is giving...
I'm on Solaris, sort -k2 -k4nr file is giving this:

xxxx apples xxxx 90
xxxx apples xxxx 100
xxxx oranges xxxx 80
xxxx oranges xxxx 70
xxxx pears xxxx 90
xxxx pears xxxx 100
1,465
Posted By jimmyf
Yoda, this iteration is causing the 4th column to...
Yoda, this iteration is causing the 4th column to no longer sort descending numerically. Think I tried this one.
1,465
Posted By jimmyf
Sort question
Have a text file containing 4 columns, the 4th column is sorted numerically in descending order. The 2nd column is alpha text. Been able to get the 4th column to sort in descending order. The 2nd...
1,292
Posted By jimmyf
thanks guys!
thanks guys!
1,292
Posted By jimmyf
VBE then the 'script' command can not be used in...
VBE then the 'script' command can not be used in a executable script?
1,292
Posted By jimmyf
'script' command
Attempting to use the 'script' command to save the session to a log. However when the command is used as the first line of the executable script, the script stops and won't proceed.

#!...
797
Posted By jimmyf
Rudi, that only achieved this: John Davis ...
Rudi, that only achieved this:

John Davis
5555555
797
Posted By jimmyf
sed question
have some data and I'm attempting to manipulate with sed with not much success.

Name
John Davis

Phone
5555555

Name
Tim Watson

Phone
1111111

would like to get that data to sort...
Showing results 1 to 25 of 114

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