1836357 Members
1879 Online
110100 Solutions
New Discussion

Re: sort

 
SOLVED
Go to solution
pasquale67
New Member

sort

Run the vi editor and create a file with at least 10 lines of unsorted data in it. Capture a screen shot of output. Diplay the first 8 lines of the file created in sorted order than screen shot.
Diplay the date in yyyy mmm dd.
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: sort

Well, let's see....This sounds like a class assignment and a fairly simple one.

>>First, use vi to create a file.

# vi filename

>>Capture a screen shot.

You could do that from the PC.

>>Display the first 8 lines of the file created in sorted order.

Have a look at the man pages for 'sort' and 'head'.

# man sort
# man head

>> Display the date in YYYY mmm dd

Have a look at the man page for 'date'.
# man date
(Hint: look at the section for formatting using the % variables.)
spex
Honored Contributor

Re: sort

$ man 1 sort
$ man 1 head
$ man 1 date
$ man 1 vi

Is this a homework problem?