Search Results

Search: Posts Made By: jfortes
24,897
Posted By jfortes
How to find EOF character in a Shell ?
Hi,

I'm need to determine if a file contains the EOF character, how can I do that in Shell scripting?

Regards.
28,573
Posted By jfortes
Resolved
Hi all,

Thanks for your suggestions.

This one:
alias kpipe='kill `psme| grep "ifw -r" | grep -v "grep ifw -r"| awk "{print \\$2}"`'

worked perfectly.

Regards,
Joao.
28,573
Posted By jfortes
psme output: tstuser 63122 rating ...
psme output:

tstuser 63122 rating
oppuser 12134 javapps

meaning: first column is the user , second is the process id, third is the application name

Cheers.
28,573
Posted By jfortes
Define an alias with an embeded awk command ??
Hi all,

I'm trying to define an alias with an embeded awk command:

alias kpipe='kill `psme| grep "ifw -r" | grep -v "grep ifw -r"| awk '{print $2}'`'

The problem is that the awk command ...
5,674
Posted By jfortes
Thanks it worked just fine. Joao.
Thanks it worked just fine.

Joao.
5,674
Posted By jfortes
How to get the most left hand string ??
Hi,

I remember once seeing a way to get the left most string in a word.
Let's say: a="First.Second.Third" (separated by dot)

echo ${a#*.} shows --> Second.Third
echo ${a##*.} shows -->...
Showing results 1 to 6 of 6

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