Unix/Linux Go Back    

Showing results 1 to 25 of 106
Search took 0.01 seconds.
Search: Posts Made By: jimmyf
Forum: UNIX for Beginners Questions & Answers Linux 09-07-2017
Replies: 5
Views: 485
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...
Forum: UNIX for Beginners Questions & Answers Linux 09-05-2017
Replies: 5
Views: 485
Posted By jimmyf
Yes, I've tried that, didn't change anything.

Yes, I've tried that, didn't change anything.
Forum: UNIX for Beginners Questions & Answers Linux 09-01-2017
Replies: 5
Views: 485
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...
Forum: UNIX for Beginners Questions & Answers Linux 04-06-2017
Replies: 1
Views: 301
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...
Forum: UNIX for Beginners Questions & Answers Linux 04-04-2017
Replies: 3
Views: 284
Posted By jimmyf
it works but I don't understand why

it works but I don't understand why
Forum: UNIX for Beginners Questions & Answers Linux 04-04-2017
Replies: 3
Views: 284
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...
Forum: UNIX for Beginners Questions & Answers Linux 03-07-2017
Replies: 2
Views: 442
Posted By jimmyf
Yes! Thank you Scrutinizer!

Yes! Thank you Scrutinizer!
Forum: UNIX for Beginners Questions & Answers Linux 03-07-2017
Replies: 2
Views: 442
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...
Forum: UNIX for Beginners Questions & Answers Linux 03-03-2017
Replies: 8
Views: 619
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.
Forum: UNIX for Beginners Questions & Answers Linux 03-03-2017
Replies: 8
Views: 619
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
Forum: UNIX for Beginners Questions & Answers Linux 03-03-2017
Replies: 8
Views: 619
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.
Forum: UNIX for Beginners Questions & Answers Linux 03-03-2017
Replies: 8
Views: 619
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...
Forum: Shell Programming and Scripting Linux 02-12-2017
Replies: 5
Views: 430
Posted By jimmyf
thanks guys!

thanks guys!
Forum: Shell Programming and Scripting Linux 02-12-2017
Replies: 5
Views: 430
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?
Forum: Shell Programming and Scripting Linux 02-12-2017
Replies: 5
Views: 430
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.

#!...
Forum: UNIX for Beginners Questions & Answers Linux 01-23-2017
Replies: 5
Views: 298
Posted By jimmyf
Rudi, that only achieved this: John Davis ...

Rudi, that only achieved this:

John Davis
5555555
Forum: UNIX for Beginners Questions & Answers Linux 01-23-2017
Replies: 5
Views: 298
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
Forum: UNIX for Beginners Questions & Answers Linux 01-16-2017
Replies: 1
Views: 311
Posted By jimmyf
Fgrep literal string from a file

have a file1
aaa-bbb-ccc-abcd
aaa-bbb-ccc-bacd
aaa-bbb-ccc-aaad
aaa-bbb-ccc-ahave another file2
aaa-bbb-ccc-a fileusing the fgrep command, trying to have only the literal string returned.
...
Forum: UNIX for Beginners Questions & Answers Linux 01-09-2017
Replies: 6
Views: 567
Posted By jimmyf
I am in awe of you both.

I am in awe of you both.
Forum: UNIX for Beginners Questions & Answers Linux 01-05-2017
Replies: 6
Views: 567
Posted By jimmyf
Brilliant thank you!

Brilliant thank you!
Forum: UNIX for Beginners Questions & Answers Linux 01-05-2017
Replies: 6
Views: 567
Posted By jimmyf
Rows to columns

trying to sort an array, only the 4th column is uniq,

have this:

dog cat bird house1
dog cat bird house2
dog cat bird house3
rose daisy tulip house1
rose daisy tulip house3
Forum: UNIX for Beginners Questions & Answers Linux 12-13-2016
Replies: 10
Views: 605
Posted By jimmyf
Yes that worked! Thanks Scrutinizer!

Yes that worked! Thanks Scrutinizer!
Forum: UNIX for Beginners Questions & Answers Linux 12-13-2016
Replies: 10
Views: 605
Posted By jimmyf
Scrutinizer, I'm doing the sort -b but it's...

Scrutinizer, I'm doing the sort -b but it's returning the 'bird1' first. I think this is the problem. Is there a way to tell sort to put the numeric ones 2nd?

>sort -b file2_sort
bird1 peck...
Forum: UNIX for Beginners Questions & Answers Linux 12-13-2016
Replies: 10
Views: 605
Posted By jimmyf
Apologies, here is the actual sample: >cat...

Apologies, here is the actual sample:

>cat file1_sort
bird fly
cat meow
dog bark
goat baa

>cat file2_sort
bird1 peck
Forum: UNIX for Beginners Questions & Answers Linux 12-13-2016
Replies: 10
Views: 605
Posted By jimmyf
It's not working. The sort is correct, just not...

It's not working. The sort is correct, just not in my example.
Showing results 1 to 25 of 106

 


All times are GMT -4. The time now is 01:39 AM.