1827855 Members
1455 Online
109969 Solutions
New Discussion

Command

 
Vanquish
Occasional Advisor

Command

Hi
I want to know what this command does
//g' filename.txt > filename.bcp.out
Thanks
4 REPLIES 4
Juergen Tappe
Valued Contributor

Re: Command

That looks like the end of and sed command.

Did you find it in a shell script?

If Im right the line(s) above should look similar to:

sed '1,$s/what ever text
//g' filename.txt > filename.bcp.out

so:
This command is trying to substitute the text "what ever text" with nothing and write it to the ... out file.

Or by type an extra return went to the the code. then just merge the 2 lines together.
(Press J in the 1st line using vi)
Working together
Michael Tully
Honored Contributor

Re: Command

That is not going to do anything.

Should be something like this

$ sed 's/\[//g' filename1 >filename2
Which basically removes the '[' from filename1
Anyone for a Mutiny ?
generic_1
Respected Contributor

Re: Command

You could create an alias to that string to make things quicker.
SS_6
Valued Contributor

Re: Command

As other said, its not a complete command. Someone is trying to take some information from filename.txt and putting it into filename.bcp.out.
By providing solutions I am helping myself