Search Results

Search: Posts Made By: ocrambo
3,302
Posted By ocrambo
If you call it inefficient, I fully agree. As...
If you call it inefficient, I fully agree. As mentioned before, useless is a different thing. With your experience you should have noticed that the request for information was from a noob. By...
3,302
Posted By ocrambo
Hi Vinoth, great. for those calling things...
Hi Vinoth, great.

for those calling things useless...... In my opinion using `cat` as an example is easy to understand, so useful. There are many one-liners (without useless things) which take...
3,302
Posted By ocrambo
make the grep case-insensitive by changing the...
make the grep case-insensitive by changing the command to
cat script.txt | egrep -i "^machine|^Owner
3,302
Posted By ocrambo
You could take a look in the manpage of grep and...
You could take a look in the manpage of grep and egrep. I think egrep is not supported under ksh and for grep you can try to find an option that suits your needs

> man grep

Please be aware that...
3,302
Posted By ocrambo
Hi Vinoth, I am using bash, don't know about...
Hi Vinoth,

I am using bash, don't know about you. When I do a small test, it is working fine:
> vi test.txt (I copied your text in)

> file=test.txt
> cat $file | egrep "^machine|^Owner"...
3,302
Posted By ocrambo
Hi Vinoth, you can try the next command: ...
Hi Vinoth,

you can try the next command:
cat $file | grep -A 1 machine
it will take every line containing "machine" and the next line

also cat $file | egrep "^machine|^Owner" should do the...
Showing results 1 to 6 of 6

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