![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to search file content | satimis | Linux | 4 | 10-22-2008 01:46 AM |
| Search files with specfic extention and later search content | lovi_v | UNIX for Advanced & Expert Users | 2 | 07-14-2008 01:05 PM |
| shell script to search content of file with timestamps in the directory | psychobeauty | Shell Programming and Scripting | 10 | 04-21-2008 06:37 AM |
| grep/cat/more -- search in a txt file and display content from a specific "keyword" | I-1 | UNIX for Dummies Questions & Answers | 4 | 02-21-2007 04:57 AM |
| How to search files containing a specific word in the content | amjath78 | UNIX for Dummies Questions & Answers | 1 | 01-03-2007 03:42 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Search File content.
Hi,
I have a problem when searching a file, the file containt with the following: 95671660:Jones:Sarah:45:sales manager 93272658:Smith:John:43:technical manager 98781987:Williams:Nick:35:computer officer 99893878:Brown:Sarah:12:electrician 95673456:Couch avid:26:chef95437869:Anderson:Sarah:19:CEO I need to take out every informaton within ":" will become Anderson Sarah 95437869 19 CEO Brown Sarah 99893878 12 electrician Couch David 95673456 26 chef Jones Sarah 95671660 45 sales manager Smith John 93272658 43 technical manager Williams Nick 98781987 35 computer officer phone number, Name, Sur Name, position, and other. |
|
||||
|
cat File.txt
95671660:Jones:Sarah:45:sales manager 93272658:Smith:John:43:technical manager 98781987:Williams:Nick:35:computer officer 99893878:Brown:Sarah:12:electrician 95673456:Couchavid:26:chef 95437869:Anderson:Sarah:19:CEO awk -F':' '{print $2,$3,$1,$4,$5}' File.txt | sort |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|