Search Results

Search: Posts Made By: mnassiri
2,153
Posted By mnassiri
This code is working for me thanks for ur replies
This was the simplest resolution I had .. Thank u all for ur replies

sed -E 's/://;s/(\w+):/\n\1/g' <<< "$var1"
abc001 text goes here yyy003 text goes here uuuu004 text goes here

:b::)
2,153
Posted By mnassiri
There must be an easier way to do this? I can...
There must be an easier way to do this?
I can strip off the colon before I pass it to the variable
All I need to do is to print the variable every time the host appears
For simplicity lets just...
2,153
Posted By mnassiri
cfajohnson ,, Thanks for ur reply .. I just...
cfajohnson ,, Thanks for ur reply .. I just tested the reassignment of the variable and it works great. But please remember , I have to print everything after the hostname until the occurence of the...
2,153
Posted By mnassiri
Hi thanks for ur responses .. I will try these...
Hi thanks for ur responses .. I will try these and get back to u when I get to work tomorrow .. I try to set a virtual host and try it now
good day

---------- Post updated at 02:52 PM ----------...
2,153
Posted By mnassiri
sed Command new Line not working Tried many variations
Hi

I have assigned an output of a command to $I. I try to print the input and put a new line after occurrence of the hostname which is assigned to $HOST1 ( Example: pwrm16 ) . First of all I...
77,018
Posted By mnassiri
thanks deimos ... it works !!!
thanks deimos ... it works !!!
77,018
Posted By mnassiri
HI thanks Demios - To be exact I tried ur...
HI thanks Demios - To be exact I tried ur command .. something not going right ?

this is the command I'm using and the output

grep -i overflow server.log | sort | grep user1 ...
77,018
Posted By mnassiri
I cannot use the ; to combine the sed command...
I cannot use the ; to combine the sed command multiple times .. I'm using sed in context of a PIPE so no I tried that and that is not what I 'm looking for .. I can do lultiple PIPES .. example
...
77,018
Posted By mnassiri
USING sed to remove multiple strings/words from a line
Hi
I use sed comnand to remove occurance of one workd from a line.
However I need to removed occurance of dufferent words in ne line.

Original-1 Hi this is the END of my begining
Comand ...
896
Posted By mnassiri
thank you both -- I will try both and let you...
thank you both -- I will try both and let you know how it goes
Really appreciate it!!
896
Posted By mnassiri
Scripting Question - getting lines above ane below certain enteries
Hello -
I have a file in the followig format

LINE TEXT 1
Line TEXT 2
TIMESTARTED=Fri Aug 16 15:20:23 EDT 2013
START-OF-DATA
123
123444
23232323
END-OF-DATA
Line TEXT 9

I need to get...
Forum: Solaris 08-14-2013
1,474
Posted By mnassiri
Hi Thanks for your reply. No There has...
Hi

Thanks for your reply.
No There has been no upgrade or changes applies to these servers.
I will not be able to connect this to the network port.

I have never done this before. How will...
Forum: Solaris 08-12-2013
1,474
Posted By mnassiri
Remote managemnt - looking at hardware issue (using ALOM ) Server rebooting
Hi

we have A sun4v SPARC Enterprise T2000
It has started to go down frequently without producing any corefiles.
There is nothing in the logs to induicate any issues.
So I'm trying to remotely...
3,493
Posted By mnassiri
Thank you all
The post were very helpful
Cheers
3,493
Posted By mnassiri
Thanks .. I will try all of these and get back to...
Thanks .. I will try all of these and get back to you all
Cheers
3,493
Posted By mnassiri
Scraping line - Using awk or sed
Hello,


Can somone help with this command please?

I have this output pattern in a file. I use a simple awk command to
print each field separated by comma. For example I use this to get...
Forum: Solaris 07-10-2013
5,345
Posted By mnassiri
Hi all - Lsof not available - will try other comands
Hi - Thanks for ur replies

Just Ice & DGPickett>>
lsof was the first command I tried , but it is not available on this install. So no go there

---------------------------

jlliagre >> I...
Forum: Solaris 07-10-2013
5,345
Posted By mnassiri
Find path of executable having problem
Hi

cannot find the path to a running process on a host.
I looked and tried some suggestions in forums to no avail.
can someone please help? I need to know where this process is starting from...
2,227
Posted By mnassiri
Thanks! Worked like a charm I need to figure...
Thanks! Worked like a charm
I need to figure out what these options do
so I can use it again
2,227
Posted By mnassiri
Output block of lines in a file based on grep result
Hi I would appreciate your help with this.
I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information...
1,216
Posted By mnassiri
Help needed with file output awk sed command - please
Hi I have a file that contains lines starting with a particular string plus a Colon: I need to output all these lines but only what comes after the colon

Can you pelase assist?



...
22,720
Posted By mnassiri
thank u all !!!
all these commands were helpful and I used thell
Cheers
22,720
Posted By mnassiri
[SOLVED] moving multiple files? mv
HI I have a list of files that are incorrectely names and I need to move them to new name .. I tried few things that has not worked so far can you help ?

I need to rename all thes eifle ( tere...
3,448
Posted By mnassiri
Thanks !!! itkamaraj...
Thanks !!! itkamaraj (https://www.unix.com/members/302077176.html) -- It works:)
3,448
Posted By mnassiri
Hey Corona688 I just missed it on this...
Hey Corona688

I just missed it on this forum .. Adding it does not help on the command like. I need to be able to escape the @ character ? Can u help?
Showing results 1 to 25 of 46

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