![]() |
|
|
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 |
| jar command not being recognized | orahi001 | UNIX for Dummies Questions & Answers | 1 | 05-06-2008 11:29 AM |
| Retrieve 5th Field to Last Field !! | jobbyjoseph | UNIX for Dummies Questions & Answers | 3 | 05-16-2007 04:20 AM |
| Moving Part of a field to another field using AWK | rjsha1 | Shell Programming and Scripting | 5 | 08-04-2006 06:39 AM |
| I am not being recognized | Help | Forum Support Area for Unregistered Users & Account Problems | 0 | 01-10-2006 04:30 AM |
| Argument not recognized as integer | scmay | Shell Programming and Scripting | 1 | 05-14-2004 03:41 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I am writing a script to use awk to generate a set of cp commands from an input file abc. file abc: /data/a.dbf /data/june/b.dbf desired output: cp -pr a.dbf /data/a.dbf cp -pr b.dbf /data/june/b.dbf script: $ cat abc | awk '{ print "cp -pr '`basename $1`' " $1 }' I tried to use awk with basename command, but it seems that the field $1 in backquotes is not recognized by awk. How to fix it? Many thanks, voa2mp3 |
| Bookmarks |
| Tags |
| linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|