Search Results

Search: Posts Made By: billy5
Forum: Red Hat 06-22-2018
5,944
Posted By billy5
Beginner : sftp doesnt work
Hello,
I really appreciate any help on this.
Have to connect to external server via sftp. Our server is Linux machine

Linux our.server.com 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05
...
4,147
Posted By billy5
Thanks, this explains it : $ man sed ----- ...
Thanks, this explains it :
$ man sed
-----
A script consists of editing commands, one per line, of the following
form:

[address[,address]]function[arguments ]

...
4,147
Posted By billy5
sed script. How does it work?
I'm using this command
sed -e "s/'/'/g" -e 's/"/"/g' -e 's/&/\&/g' myfile.txt

My question is does this command reads file 3 times applying different replacement each time or it reads it only once...
9,796
Posted By billy5
It works. Thank you very much 98_1LE. :)
It works. Thank you very much 98_1LE. :)
9,796
Posted By billy5
sed doesn't work
Hello
I' m confused a bit.
I want to replace string "&amp" with "&" using this command.

sed 's/&amp/&/g'

and it doesn't work. Nothing happens.

On the other side this works:
sed...
5,924
Posted By billy5
Thank you very much :). All the best.
Thank you very much :).
All the best.
5,924
Posted By billy5
Vi editor ?
Hello everybody,

My question is: how to add /tmp/work at the end of line in vi editor.

my file looks like:

cp file1
cp file2
cp file3
****

I need to add " /tmp/work" at the end of each...
3,840
Posted By billy5
Thank you very much Igor. It works! :)
Thank you very much Igor.
It works! :)
3,840
Posted By billy5
OK, this is what I want. There is a file like...
OK, this is what I want.
There is a file like this:

ISAtext1
GStext2
text3
text4
...
textn
GE
IEA

I want to do this:

if line begins ISA - do command1.
if line begins GS -do...
3,840
Posted By billy5
awk errors
Hello,
Can you please let me know how to find all lines that don't begin with pattern1, pattern2, pattern3 and pattern4?
Here is my awk script that gives an error.

awk 'BEGIN { NAME="$FILE"
...
Showing results 1 to 10 of 10

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