Quantcast
Viewing all articles
Browse latest Browse all 62281

grep? find & replace after 8 characters

Hi all,

 

sorry, i'm having trouble doing something i'm sure is quite simple.

 

basically i have a linked file with a static caption that is reading the linked file's name, the swatches used and the creation date. it looks something like this:

 

filename.ai:3

white, blue, red

5/29/13

 

the file name is ALWAYS 8 characters and i'd like to remove the .ai:3 portion (whatever is happens to be), and keep the carriage return.

 

with the swatches used, i only need the first color listed and am using grep , .*~b to remove everything after the comma up to the end of the line, but it seems the same expression does not work using a . (period).

 

in the end, i was hoping to end up with this:

filename

white

5/29/13

 

 

thanks for any help. hope this makes sense!

 

s


Viewing all articles
Browse latest Browse all 62281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>