UB Powerpoint Template

Total Page:16

File Type:pdf, Size:1020Kb

UB Powerpoint Template UNIX-LINUX OPERATING SYSTEM 1201376 BECOMING A DIVIDERLINUX POWER SLIDEUSER SectionPipes and title filters Olarik Surinta, PhD. Lecturer Pipe (|) ● The symbol ‘|’ denotes a pipe. ● If you want to use two or more commands at the same time and run them consecutively, you can use pipes. ● A filter in a pipe is an output of one command which serves as input to the next. 3 Pipe ● Commands that are create to be used with a pipe are often called filters. ● These filters are very small programs that do one specific thing very efficiently. ● The combination of simple commands and filters in a long pipe allows you to design elegant solutions. 4 grep ● The grep filter is famous among Unix users. ● The most common use of grep is to filter lines of text containing (or not containing) a certain string. 5 grep $ cat tennis.txt Amelie Mauresmo, Fra Kim Clijsters, BEL Justine Henin, Bel Serena Williams, Usa Venus Williams, USA $ cat tennis.txt | grep Williams Serena Williams, Usa Venus Williams, USA 6 grep ● You can write command without the cat. $ grep Williams tennis.txt Serena Williams, usa Venus Williams, USA 7 grep ● One of the most useful options of grep is gerp -i which filters in a case insensitive way. $ grep Bel tennis.txt Justine Henin, Bel $ grep -i Bel tennis.txt Kim Clijsters, Bel Justine Henin, Bel 8 grep ● Another very useful option is grep -v which outputs lines not matching the string. $ grep -v Fra tennis.txt Kim Clijsters, BEL Justine Henin, Bel Serena Williams, usa Venus Williams, USA 9 grep ● And of course, both options can be combined to filter all lines not containing a case insensitive string. $ grep -vi usa tennis.txt Amelie Mauresmo, Fra Kim Clijsters, BEL Justine Henin, Bel 10 cut ● The cut filter can select columns from files, depending on a delimiter. ● When using a space as the delimiter for cut, you have to quote the space. $ cut -d " " -f 1 tennis.txt Amelie Kim Justine Serena Venus 11 tr ● You can translate characters with tr. $ cat tennis.txt | tr 'a-z' 'A-Z' AMELIE MAURESMO, FRA KIM CLIJSTERS, BEL JUSTINE HENIN, BEL SERENA WILLIAMS, USA VENUS WILLIAMS, USA 12 sort ● The sort filter will default to an alphabetical sort. $ cat music.txt Queen Brel Led Zeppelin Abba 13 sort $ sort music.txt Abba Brel Led Zeppelin Queen 14 sort ● -r option is reverse the result of comparisons $ sort -r music.txt Queen Led Zeppelin Brel Abba 15 Pipe examples ● How many users are logged on to this system? $ who mrolarik tty7 2017-09-02 12:01 (:0) mrolarik pts/13 2017-09-04 16:04 (:0.0) $ who | wc -l 2 16 Pipe examples ● Cat | grep | sort $ cat tennis.txt grep -i bel | sort Justine Henin, Bel Kim Clijsters, BEL $ cat tennis.txt | grep -i bel | sort | tr 'a-z' 'A-Z' JUSTINE HENIN, BEL KIM CLIJSTERS, BEL 17 Pipe examples $ find /etc | grep -i java.*jdk /etc/java-8-openjdk /etc/java-8-openjdk/management /etc/java-8-openjdk/management/snmp.acl grep -i java.*jdk End with “jdk” Start with “java” .* = any words between “java” and “jdk” 18 File globbing ● * asterisk ● ? question mark ● [] square brackets ● A-z and 0-9 ranges 19 * asterisk ● The asterisk * in interpreted by the shell as a sign to generate filenames, matching the asterisk to any combination of characters. ● When no path is given, the shell will use filenames in the current directory. 20 * asterisk 21 ? question mark ● Similar to the asterisk, the question mark ? Is interpreted by the shell as a sign to generate filenames, matching the question mark with exactly one character. 22 ? question mark 23 [] square brackets ● The square bracket is interpreted by the shell as a sign to generate filenames, matching any of the characters between [ and the first subsequent ]. ● The order in this list between the brackets is not important. ● Each pair of brackets is replaced by exactly one character. 24 [] square brackets 25 a-z and 0-9 ranges ● The bash shell will also understand ranges of characters between brackets. 26 reference ● Linux Fundamentals – Paul Cobbaut ● Website – https://www.guru99.com/linux-pipe-grep. html – – 27.
Recommended publications
  • 2020 W&S Open Partners
    Western & Southern Open Partners Embrace Unique 2020 Tournament CINCINNATI (Aug. 6, 2020) – Numerous Western & Southern Open partners will remain involved with the tournament in 2020 during it’s one-year staging at the USTA Billie Jean King National Tennis Center in New York. Due to circumstances brought about by the COVID-19 pandemic, the Western & Southern Open will be held Aug. 20-28 at the same venue that will host the US Open beginning Aug. 31. The ATP Masters 1000 and WTA Premier 5 Western & Southern Open will be the first combined tournament hosting players from both circuits at a single venue since the tours suspended play in early March. While the venue will be different this year, a number of facets of the tournament will remain the same, starting with the name. Cincinnati-based Western & Southern Financial Group returns as title sponsor for a 19th year, marking the longest-running active naming rights relationship with a North American tennis tournament. The traditional Western & Southern backwall branding will be just one of the familiar aspects of the on-court presentation this year, particularly on the NTC’s Grandstand which will serve as the primary show court. As with 2019, a Porsche serve speed display and Rolex clock will be featured on the court. Player benches will once again be furnished by Mobisport and will be placed behind Cintas mats near drink coolers provided by BODYARMOR. Emirates will have net signage during the ATP Tour matches. LED screens will rotate sponsor signage on the side walls of the Grandstand while Motorola will be featured on LED boards on the side of the umpire’s chair.
    [Show full text]
  • DI-P15-15-1-(P)- Tas.Qxd
    Saturday 15th January, 2010 15 Australian Open men’s capsules BY DENNIS PASSA MELBOURNE, Australia (AP) - Men to watch at the Australian Open, which begins Monday (rankings in parenthe- ses): ANDY MURRAY (5) Age: 23 Country: Britain 2010 Singles Titles: 2 Career Singles Titles: 16 Major Titles: 0 Last 5 Australian Opens: ‘10-F, ‘09-4th, ‘08-1st, ‘07-4th, RAFAEL NADAL (1) ‘06-1st, ‘05-DNP. Topspin: Murray is 0-2 in Grand Slam finals - both loss- es to Roger Federer, at the 2008 U.S. Open and 2010 Australian RAFAEL NADAL (1) Open - and he’s trying to become the first British man to win Age: 24 last year’s French Open, Wimbledon a major championship since Fred Perry in 1936. The pressure Country: Spain and U.S. Open. That would take his of that task showed when he made a tearful speech after last 2010 Match Record: 71-10 Grand Slam total to 10. The Spaniard is year’s loss at Rod Laver Arena. Played with British team- 2010 Singles Titles: 7 aiming to be the first man since Rod mate Laura Robson at the Hopman Cup two weeks ago, and Career Singles Titles: 43 Laver to hold all four Grand Slam tro- the Kooyong exhibition this week to try to hone his game Major Titles: 9 - Wimbledon (‘08, phies at once, although it won’t be a ahead of Melbourne Park. ‘10), Australian Open (‘09), true Grand Slam - Laver won all four in French Open (‘05, ‘06, ‘07, ‘08, ‘10), a calendar year in 1969. Got 2011 off to U.S.
    [Show full text]
  • Lindsay Davenport (USA) 7-5 6-3 Winner’S Prize: Porsche 911 Carrera 4 Cabriolet Prize Money: 450,000 US Dollar
    History 1998 - 2007 1998 Final: Sandrine Testud (FRA) - Lindsay Davenport (USA) 7-5 6-3 Winner’s Prize: Porsche 911 Carrera 4 Cabriolet Prize Money: 450,000 US Dollar Host Dieter Fischer celebrated his 60th birthday. Much to his delight, Stefanie Graf entered the Grand Prix for the first time since 1985 but a hand injury thwarted her comeback in Filderstadt. Professor Ferdinand “Ferry” Porsche, the Grand Prix's great friend and sponsor, died. He last visited the event in 1996 when he handed over the prize - a Boxster - to the young Martina Hingis. His seat in the stand remained empty. 1999 Final: Martina Hingis (SUI) - Mary Pierce (FRA) 6-4 6-1 Winner’s Prize: Porsche Boxster S Prize Money: 500,000 US Dollar Sometimes it is not only spectacular tennis that thrills spectators. It happened in the first changeover of the final between Martina Hingis and Mary Pierce when the crowd applauded a fellow player sitting in the VIP box next to Porsche chairman Dr. Wendelin Wiedeking. A few weeks after retiring from tournament tennis, Stefanie Graf came to Filderstadt to watch the tournament. Martina Hingis raised her racket in the direction of her former rival as if to say, “Come down, do you want to play for me?” Stefanie Graf laughed and refused the offer. She had in the meantime established herself as a keen observer of the sport she had so dominated for over a decade. The final was over in no time at all. Martina Hingis seemed to be in a hurry to win her third Porsche at her sixth appearance at the Porsche Tennis Grand Prix.
    [Show full text]
  • Media Guide Template
    MOST CHAMPIONSHIP TITLES T O Following are the records for championships achieved in all of the five major events constituting U R I N the U.S. championships since 1881. (Active players are in bold.) N F A O M E MOST TOTAL TITLES, ALL EVENTS N T MEN Name No. Years (first to last title) 1. Bill Tilden 16 1913-29 F G A 2. Richard Sears 13 1881-87 R C O I L T3. Bob Bryan 8 2003-12 U I T N T3. John McEnroe 8 1979-89 Y D & T3. Neale Fraser 8 1957-60 S T3. Billy Talbert 8 1942-48 T3. George M. Lott Jr. 8 1928-34 T8. Jack Kramer 7 1940-47 T8. Vincent Richards 7 1918-26 T8. Bill Larned 7 1901-11 A E C V T T8. Holcombe Ward 7 1899-1906 E I N V T I T S I OPEN ERA E & T1. Bob Bryan 8 2003-12 S T1. John McEnroe 8 1979-89 T3. Todd Woodbridge 6 1990-2003 T3. Jimmy Connors 6 1974-83 T5. Roger Federer 5 2004-08 T5. Max Mirnyi 5 1998-2013 H I T5. Pete Sampras 5 1990-2002 S T T5. Marty Riessen 5 1969-80 O R Y C H A P M A P S I T O N S R S E T C A O T I R S D T I S C S & R P E L C A O Y R E D R Bill Tilden John McEnroe S * All Open Era records include only titles won in 1968 and beyond 169 WOMEN Name No.
    [Show full text]
  • Final Sunday
    GREEN GROUP BLACK GROUP Rank SEMIFINALS Rank 1 Lindsay DAVENPORT GROUP PLAY STANDINGS 2 Kim CLIJSTERS 3 Maria SHARAPOVA GREEN GROUP Final Standings: DAVENPORT 4 Amelie MAURESMO Matches Sets PIERCE 8 Patty SCHNYDER W/L W/L PIERCE 76(5) 76(6) 5 Mary PIERCE 1 SHARAPOVA 2-1 4-4 9 Nadia PETROVA 2 DAVENPORT 2-1 5-2 10 Elena DEMENTIEVA 3 SCHNYDER 1-2 3-5 SHARAPOVA 4 PETROVA 1-2 3-4 MAURESMO MAURESMO 76(1) 63 BLACK GROUP Final Standings: Matches Sets W/L W/L 1 PIERCE 3-0 6-2 2 MAURESMO 2-1 5-2 CHAMPION: DAVENPORT vs SHARAPOVA 3 CLIJSTERS 1-2 3-4 CLIJSTERS vs MAURESMO Winner: 4 DEMENTIEVA 0-3 0-6 MAURESMO Winner: SHARAPOVA 63 57 64 57 76(3) 64 MAURESMO 63 76(4) DAVENPORT vs SCHNYDER CLIJSTERS vs PIERCE Winner: Winner: DAVENPORT 63 75 PIERCE 61 46 76(2) DAVENPORT vs PETROVA CLIJSTERS vs DEMENTIEVA Winner: Winner: DAVENPORT 62 76(1) SUNDAY, 13 November 2005 - Results CLIJSTERS 62 63 SHARAPOVA vs SCHNYDER Singles final: Amelie MAURESMO d. Mary PIERCE 57 76(3) 64 MAURESMO vs PIERCE Winner: Winner: SHARAPOVA 61 36 63 Doubles final: Raymond/Stosur d. Black/Stubbs 67(5) 75 64 PIERCE 26 64 62 SHARAPOVA vs PETROVA MAURESMO vs DEMENTIEVA Winner: Winner: PETROVA 61 62 MAURESMO 62 63 SCHNYDER vs PETROVA PIERCE vs DEMENTIEVA Winner: Winner: SCHNYDER 60 57 64 PIERCE 62 63 Dates of Play PLAYERS RANK Prize Money US $ Pts Player representative From 08 Nov 2005 1. LINDSAY DAVENPORT 1 Winner 1,000,000 485 SCHEDULE OF MATCHES To 13 Nov 2005 2.
    [Show full text]
  • Nadal Revs for Roddick
    53 OPINIONS 100 2004 U.S. OPEN BE OUR GUEST By ANDREW FRIEDMAN A very tough sell Scaffold law works – don’t Justine salutes Israeli Wooing voters isn’t easy for black GOPers BLACK ONLY he most elegant folk you ers to the GOP. undermine it Obziler shows some Zip ever saw were clinking Despite his minstrel-show Twine glasses at a swank re- clowning in and around Madi- Contractors want to cut ception of the National Black Re- son Square Garden, King re- publican Council, held yester- mains what the black communi- corners on worker safety in 2nd-round loss to No. 1 day at the Central Park Boat- ty always has known him to be: house. To this group falls the a career criminal from Ohio ast weekend, one immigrant By WAYNE COFFEY thankless task of selling the Re- who has been convicted of kill- died in Brooklyn and anoth- DAILY NEWS SPORTS WRITER ing two men and who served L er was injured — both just publican Party to a black com- A 31-YEAR-OLD VETERAN of the Israeli Army took Center Court munity in which 9 of every 10 years in prison for his offenses. doing their jobs. They worked in voters are almost certain to vote King swindled astring of construction, and their accidents at the U.S. Open yesterday, a Flushing Meadows rookie unlike any Democratic. black boxers and virtually happened on scaffolding at the other. She wore an outfit that was the color of a school bus, Black Republicans come in ruined the sport.
    [Show full text]
  • Hall of Famer Bud Collins As a Journalist and Television Commentator, No Media Professional Had As Vibrant a Personality As Arthur “Bud” Collins
    Journalism (6th Grade) Lesson 1: Bud Collins and the Art of the Interview Overview: As students work through the activities in this lesson they will be introduced to the different types of stories that make up a newspaper (news, feature, op-ed). The activities that accompany this unit are geared towards the students’ multiple intelligences and will provide academic challenges at multiple levels of cognitive complexity while satisfying the goal of working towards mastery of grade appropriate common core standards of Literacy. Objectives: Students will be able to- • Gain background knowledge through vocabulary activities and comprehension activities (such as guided questioning and using appropriate graphic organizers) about journalism, interviewing, and writing. • Form an understanding of the contribution that Bud Collins made to the sport of tennis. • Write a thoughtful journalistic story based on facts given. • Demonstrate what they have learned about journalism, Bud Collins and his significance to the game of tennis, and his place in history by successfully completing activities, group organizers, and by taking part in meaningful classroom discussions. Lesson Time Suggested: Two class periods Hall of Famer Bud Collins As a journalist and television commentator, no media professional had as vibrant a personality as Arthur “Bud” Collins. His trademark bow-ties and colorful trousers that often seemed like they could glow in the dark were custom made from fabrics he collected in his world travels covering tennis for more than 50 years. One thing Collins collected as well: a voluminous knowledge of tennis that was delivered with infectious enthusiasm. His television commentary was often more entertaining than the match he was covering, and his writings for the Boston Globe starting in 1963 provided him a forum to become the preeminent and foremost authority on tennis in the world.
    [Show full text]
  • Physics of Tennis Lesson 4 Energy
    The Physics of Tennis Lesson 4: Energy changes when a ball interacts with different surfaces Unit Overview: In this unit students continue to develop understanding of what can be at first glance a complicated system, the game of tennis. In this activity we have taken two components of the game of tennis, the ball and court, to see if we can model the interactions between them. This activity focuses on the energy interactions between ball and court. Objectives: Students will be able to- • Describe what forces interact when the ball hits a surface. • Understand what changes occur when potential and kinetic energy conversion is taking place within a system. At the high school level students should include connections to the concept of “work =FxD” and calculations of Ek = ½ 2 mv and Ep =mgh according to the conservation of energy principal. • Identify the types of energy used in this system. (restricted to potential & kinetic energy) • Comparative relative energy losses for typical court compositions. Lesson Time Required: Four class periods Next Generation Science/Common Core Standards: • NGSS: HS-PS3-1.Create a computational model to calculate the change in the energy of one component in a system when the change in energy of the other component(s) and energy flows in and out of the system are known. • CCSS.Math. Content: 8.F.B.4 Use functions to model relationships between quantities. • Construct a function to model a linear relationship between two quantities. Determine the rate of change and initial value of the function from a description of a relationship or from two (x, y) values, including reading these from a table or from a graph.
    [Show full text]
  • Margaret Court Margaret Court Is Australia's Most Successful And
    Margaret Court Margaret Court is Australia's most successful and celebrated tennis player of all time. No player in tennis history has ever surpassed her incredible record of 62 grand slam titles, in both singles and doubles. Margaret became a Christian while she was still the world's best, and when she finally retired from the game in 1976, she settled down to a life as a wife and mother, but could not resist the call of God that was on her life. Margaret Court in 1964 went on to win more Grand Slam titles than any other player in history, both male and female! In 1970, Court became the first woman during the open era (and the second woman in history) to win the singles Grand Slam (all four major tournaments in the same calendar year). Court won a record 24 of those titles, a record that still stands. She also won 19 women's doubles and 21 mixed doubles titles, giving her a record 64 major titles overall. She is the only woman to win the mixed doubles Grand Slam, which she accomplished twice. Her all surfaces (hard, clay, grass, and carpet) singles career winning percentage of 91.68% (1180–107) is one of the best of all-time, according to the Sporteology website.[1] Her open era singles career winning percentage of 91.37% (593–56) is also unequaled.[2] Her win-loss performance in all Grand Slam singles tournaments was 90.12% (210– 23). She was 95.31% (61–3) at the Australian Open, 90.38% (47–5) at the French Open, 85.10% (51– 9) at Wimbledon, and 89.47% (51–6) at the US Open.
    [Show full text]
  • Volvo Car Open Announces 2021 Player Field
    FOR IMMEDIATE RELEASE March 10, 2021 VOLVO CAR OPEN ANNOUNCES 2021 PLAYER FIELD Top WTA talent will compete in Charleston in April, including defending champion Madison Keys, Grand Slam champions Ashleigh Barty, Sofia Kenin, Garbiñe Muguruza and more ​ ​ Social Media: .@VolvoCarOpen has announced its 2021 player field, featuring @MadisonKeys, ​ ​ @ashbarty & @sofiakenin. Event will be held without fans due to the ongoing pandemic, but will be televised April 3 – 11 via @TennisChannel & @WTA. More: https://bit.ly/3buXT3g. #VolvoCarOpen #CHS CHARLESTON, S.C. – The Volvo Car Open, to be held without fans April 3 - 11 on Daniel ​ Island in Charleston, SC, has announced its preliminary player field for the 2021 tournament. ​ ​ The field for the premier women’s-only professional tennis tournament in North America is led ​ ​ by World No. 1 Ashleigh Barty and features some of the top players in the world. The Volvo Car Open’s 56-player draw is made up of 43 direct entries into the tournament, five wild cards and eight qualifiers. Kim Clijsters has already accepted a wild card for the event. Four additional players will join the main draw via wild card entry, to be announced at a later date. "The world of live sporting events has had to make many difficult decisions over the past year,” said Bob Moran, Tournament Director for the Volvo Car Open. “We wish we could host a stadium full of fans in 2021 to appreciate the world-class talent represented in our player field, from WTA’s top-ranked Ashleigh Barty and our defending champion Madison Keys, to next generation tennis stars like Sofia Kenin and Coco Gauff.
    [Show full text]
  • Grand Slam Singles Title Leaders
    OPEN ERA: GRAND SLAM SINGLES TITLE LEADERS SERENA WILLIAMS 23 STEFANIE GRAF 22 CHRIS EVERT 18 MARTINA NAVRATILOVA 18 MARGARET COURT 11 GRAND SLAMS Grand Slam Champions The Australian Open, Roland Garros, Wimbledon and US Open are the four Grand Slam tournaments. Winning the title at each major in the same year is known as the “Grand Slam”. Three women have completed the singles Grand Slam in a calendar year: 1953 – Maureen Connolly; 1970 – Margaret Court; 1988 – Stefanie Graf. A further seven women have won each Grand Slam singles title at least once in their careers (known as the career Grand Slam): Doris Hart, Shirley Fry, Billie Jean King, Chris Evert, Martina Navratilova, Serena Williams and Maria Sharapova, with Navratilova (1983-84) and Williams (2002-03, 2014-15) holding all four titles at the same time. Australia’s Margaret Court holds the record for all-time Grand Slam singles titles (men or women) with 24 titles, ahead of Serena Williams, who holds the Open Era record with 23 Grand Slam singles titles. In the Open Era, eight women have won three of the four Grand Slam titles: Lindsay Davenport, Evonne Goolagong Cawley, Justine Henin, Martina Hingis, Angelique Kerber, Hana Mandlikova, Monica Seles and Virginia Wade. All-Time Grand Slam Singles Titles Leaders PLAYER (NAT) AO RG WIMB US TOTAL Margaret Court (AUS) 11 5 3 5 24 Serena Williams (USA) 7 3 7 6 23 Stefanie Graf (GER) 4 6 7 5 22 Helen Wills Moody (USA) 4 8 7 19 Chris Evert (USA) 2 7 3 6 18 Martina Navratilova (USA) 3 2 9 4 18 Billie Jean King (USA) 1 1 6 4 12 Maureen Connolly
    [Show full text]
  • Media Guide Template
    ON THIS DAY IN US OPEN HISTORY... T O AUGUST 23 U R I N N F 1926 – Molla Mallory fights off a match point and a 0-4 final-set deficit to win the U.S. women’s A O singles title with a 4-6, 6-4, 9-7 victory over Elizabeth Ryan. M E 1931 – Helen Wills Moody wins her record seventh U.S. women’s singles crown, defeating Eileen N Bennett Whitingstall, 6-4, 6-1, in the final. T 2011 – The first day of the 2011 US Open Qualifying Tournament features an earthquake that mildly rattles the grounds of the USTA Billie Jean King National Tennis Center. The 5.9-magnitude earthquake has its epicenter near Richmond, Va., but is felt as far north F as Boston. There is no disruption in play, nor do the grounds sustain any damage. G A R C O I L U AUGUST 25 I T N Y D & 1997 – The United States Tennis S s e Association dedicates g a m I Arthur Ashe Stadium with a y t t dramatic on-court ceremony e featuring Ashe’s widow, G Jeanne Moutassamy Ashe, A E C Whitney Houston and 38 V T E I N former champions. V T I T S Tamarine Tanasugarn I E & defeats Chanda Rubin, 6-4, S 6-0, in the first match played in Arthur Ashe Stadium. Venus Williams makes her US Open debut, also on Arthur Ashe H I Stadium court, and defeats S The dedication of Arthur Ashe Stadium T Larisa Neiland in the first O R round, 5-7, 6-0, 6-1.
    [Show full text]