10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
i am updating a file on UNIX and have many lines as per below :
listen:x:37:4:Network Admin:/usr/net/nls:
i would like to substitute from the :/usr to the end of the line.
so at the moment im using this :
:s/"\/$/ /g
but i get an error.can anyone help?
thank you (3 Replies)
Discussion started by: brian112
3 Replies
2. Shell Programming and Scripting
echo `echo ` doesn't echoes anything. And it's logic. But
echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo"
(too much echoing :P):o (2 Replies)
Discussion started by: hakermania
2 Replies
3. Shell Programming and Scripting
My question is how would I substitute for ceratain number of occurences in a line? If this is my input
rjohns BFSTDBS01 Standard Silver NPRO30DINCR 2 Client
Is it possible to change the first 3 occurences of space " " to a comma? (7 Replies)
Discussion started by: reggiej
7 Replies
4. UNIX for Dummies Questions & Answers
Bit of a weird one i suppose, i want to use an echo inside an echo... For example...
i have a script that i want to use to take users input and create another script. Inside this script it creates it also needs to use echos...
echo "echo "hello"" >$file
echo "echo "goodbye"" >$file
... (3 Replies)
Discussion started by: mokachoka
3 Replies
5. UNIX for Advanced & Expert Users
/***************************************************************************
* secho.c Copyright (C) 2009 by hashi NOVELTY WARE *
* unix shell tool substitute for echo "sexy echo" *
... (2 Replies)
Discussion started by: hashi
2 Replies
6. Shell Programming and Scripting
/***************************************************************************
* secho.c Copyright (C) 2009 by hashi NOVELTY WARE *
* unix shell tool substitute for echo "sexy echo" *
... (1 Reply)
Discussion started by: hashi
1 Replies
7. Shell Programming and Scripting
So in my shell i execute:
{ while true; do echo string; sleep 1; done } | read line This waits one second and returns.
But
{ while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly.
I have tried this in bash as well as zsh,... (2 Replies)
Discussion started by: ulidtko
2 Replies
8. Shell Programming and Scripting
Hi,
I have query terms like this:
a) apple bannana
b) apple bannana AND chickko
c) "milk shake" OR Graphes orange
whereever there is space substitue with AND operator.
I tried like this: (2 Replies)
Discussion started by: vanitham
2 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
this there another function i can to print out a line besides echo? (2 Replies)
Discussion started by: hanyou.lin
2 Replies
10. UNIX for Dummies Questions & Answers
I know in vi you can do
:%s/replaceme/withthis/
but if i want to find all lines say without a # at the begining and I want to put it in how would that command be formatted? I can't figure it out for the life of me.
#comment
blah1
hey1
grrr1
#comment
#blah1
#hey1
#grrr1 (5 Replies)
Discussion started by: kingdbag
5 Replies