![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| absolute path | Kirichiko | UNIX for Dummies Questions & Answers | 2 | 10-03-2007 03:30 AM |
| $PWD shows absolute path vs path w/symbolic links | kornshellmaven | Shell Programming and Scripting | 3 | 06-13-2007 09:15 AM |
| absolute path | filedeliver | High Level Programming | 4 | 06-05-2007 02:18 PM |
| vi - replacing a relative path with absolute path in a file | Yinzer955i | UNIX for Dummies Questions & Answers | 2 | 09-07-2006 08:47 AM |
| HOW to make absolute path???? HELP | youngvet | High Level Programming | 1 | 11-01-2003 01:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
|||
|
|||
|
Era now it will copoy files with spaces also
Code:
#! /usr/bin/ksh cd /home/backup/ find /home/abc/ -name "*.s" | while read line do p=$(dirname "$line" ) p1=$(echo $p | sed 's/\///') mkdir -p $p1 cd $p1 tocopy=$(pwd) echo $tocopy cp "$line" $tocopy cd - done |
| Forum Sponsor | ||
|
|
|
#16
|
|||
|
|||
|
find & copy files with absolute path
Thanks you
thanks era & aju_kup My problem is solved |
|||
| Google The UNIX and Linux Forums |