![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem cutting | finalight | Shell Programming and Scripting | 6 | 05-20-2008 05:53 PM |
| Question about SED cutting and renaming | spindoctor | Shell Programming and Scripting | 10 | 06-20-2007 11:04 AM |
| cutting | terms5 | UNIX for Dummies Questions & Answers | 1 | 03-14-2006 10:33 PM |
| cutting out the last field | bcheaib | Shell Programming and Scripting | 2 | 06-07-2005 01:06 AM |
| Cutting Up a String | lesstjm | Shell Programming and Scripting | 4 | 09-21-2004 08:40 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cutting In Unix Question
Please Delete!
Thanks. Last edited by Shiruken; 09-08-2008 at 07:58 PM. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
awk -F"[ .]" '{ printf "%s ", $1; if($0 ~ "log") { print $(NF - 1) } else { print $NF } }' filename
|
|
#3
|
|||
|
|||
|
Awesome! But I have to do it with the "Cut" feature.
Is there any way to do that? (I know it's lame!) |
|
#4
|
|||
|
|||
|
yes, you can do it.
But why not awk ? What stops you from using awk ? |
|
#5
|
|||
|
|||
|
It is for a project we are working on in our programming class. We can't use awk. I wish I could. That's why I can't figure out how to do it. I got so use to using that!
|
|
#6
|
||||
|
||||
|
You CANT post homework/schoolwork projects here, please read the rules.
|
|
#7
|
|||
|
|||
|
Please read the rules of the forum.
Homework questions are not allowed here. |
|||
| Google The UNIX and Linux Forums |