![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing IP thru editing files | bluridge | SUN Solaris | 2 | 02-27-2008 03:22 AM |
| the best way of editing .plist files | mehow | OS X (Apple) | 1 | 01-21-2008 06:46 PM |
| Editing files | sameersbn | UNIX for Dummies Questions & Answers | 2 | 01-19-2007 05:22 PM |
| Editing one string in multiple files | Skoshi | UNIX for Dummies Questions & Answers | 1 | 11-10-2001 02:13 AM |
| editing unix files on NT | pixelmonkey | UNIX for Dummies Questions & Answers | 1 | 02-01-2001 12:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
string editing in files
Hi all,
I'm fairly new to scripting in linux and need some help. I have an file that looks something like this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Some comments # Some comments # Some comments # Some comments # Some comments # Some comments abc:/path/to/somewhere:X asdf:/path2/to/somewhere:Y qwert:/path3/to/somewhere:z ~~~~~~~~~~~~~~~~~~~~~~~~~~~ I need a command that can cut out all characters in the file except the abc asdf qwert characters and then export them as environment variables. Thanks in advance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|