Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Easy for you but not for me!
cwilso99
post Mar 7 2015, 10:00 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 7-March 15
Member No.: 18,845



I am doing an assignment and I need help, I have tried a bunch of different things. Here is the question:
Combine the two files together in alphabetical order (use the sort command), with the results displayed on the screen. Each occurrence of the word Windows should be replaced with the phrase unstable OS. Show the command you used.
File 1
Windows NT
Solaris
Open BSD

File 2
Linux
NetWare
Windows 2000
AIX

I keep coming back to these commands but I can't seem to get it right, I am trying to pipe them together

sort -d file1 file2 > file3 | sed s/Windows/unstable OS/ file3

Any suggestions? This just makes a file3 in alphabetic order and doesn't change any words or display anything on the screen. Thanks for any help.
Go to the top of the page
 
+Quote Post
michaelk
post Mar 8 2015, 10:18 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



The first error is writing to the file before piping it to sed. The result is that sed has nothing to do.

sort -d file1 file2 | sed 's/Windows/unstable OS/'

There are probably several methods to display the results and write to the file. I do not know what commands you have already learned and forums are not for blindly doing homework for others so will leave the rest to you.

Go to the top of the page
 
+Quote Post
addseo1115
post May 1 2015, 01:42 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 21-April 15
Member No.: 18,872



haha topic name is funny
Go to the top of the page
 
+Quote Post
NickittenPierre
post Apr 28 2017, 01:18 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 20-April 17
Member No.: 19,292



Your assignment is much difficult and i have tried to solved but failed now i will searched and looking some good solution for this problem.







--------------------------------------------------------------------------
Buy Dissertation Online
Go to the top of the page
 
+Quote Post
aida
post Jun 1 2017, 12:07 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 31-May 17
From: UAE
Member No.: 19,494



thanks for..................................











________________________________________________________________________________
_______________________________________________________________________
قارن الهواتف الذكية
Go to the top of the page
 
+Quote Post
ronaldlee
post Jul 22 2017, 02:28 AM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 15-June 17
From: United Kingdom
Member No.: 19,583



Thanks for the post
Go to the top of the page
 
+Quote Post
wordsdoctorate
post Sep 7 2017, 03:50 AM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 7-September 17
Member No.: 20,418



Hi Friends,
I am new to this forum, happy to join here.
Thanks for your information. smile.gif




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

[url=http://www.wordsdoctorate.com/]phd thesis writing services[/url]
Go to the top of the page
 
+Quote Post
janifarlee
post Sep 8 2017, 02:12 AM
Post #8


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 8-September 17
Member No.: 20,433



Hello, i am new user what you shared ??














_________________________
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 04:31 PM