Unix/Linux Go Back    


Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.

How should I cut this line using cut and grep?

Slackware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-28-2010
garfish garfish is offline
Registered User
 
Join Date: Sep 2010
Last Activity: 5 May 2016, 3:01 AM EDT
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
How should I cut this line using cut and grep?

not sure how to do it. wan't to delete it using cut and grep ince i would use it in the shell.

but how must the command be?


Code:
grep "64.233.181.103 wwwGoogle.com" /etc/hosts | cut -d


the delimeter is just a space. can you help meplease. Linux
Sponsored Links
    #2  
Old Unix and Linux 10-28-2010
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 22 June 2017, 6:45 PM EDT
Location: Saskatchewan
Posts: 22,251
Thanks: 1,104
Thanked 4,196 Times in 3,882 Posts
For what purpose? What are you trying to do? i.e. the expected output?
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sed or Grep to delete line containing patter plus extra line rocketman88 Shell Programming and Scripting 2 06-30-2010 06:59 AM
cat file1 read line-per-line then grep -A 15 lines down in fileb irongeekio Shell Programming and Scripting 6 01-28-2009 05:30 AM
Grep or other ways to output line above and/or below searched line sammac UNIX for Dummies Questions & Answers 2 07-24-2008 02:28 AM
GREP and Retrieve Line by Line maxmave Shell Programming and Scripting 2 06-03-2008 11:45 AM
grep the line only if next line matches pbsrinivas Shell Programming and Scripting 11 07-10-2007 08:51 AM



All times are GMT -4. The time now is 04:44 AM.