![]() |
|
|
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 |
| Removing trailing spaces from delimited files | djkane | Shell Programming and Scripting | 6 | 03-29-2006 07:11 AM |
| replacing tabs to spaces from files | rishir | Shell Programming and Scripting | 6 | 12-15-2005 01:12 PM |
| Read files including spaces | kumariak | Shell Programming and Scripting | 4 | 06-08-2005 08:36 AM |
| Strip leading and trailing spaces only in a shell variable with embedded spaces | jerardfjay | Shell Programming and Scripting | 6 | 03-07-2005 02:24 PM |
| Accessing files/folders with spaces | a25khan | UNIX for Dummies Questions & Answers | 3 | 12-11-2003 10:30 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Files with spaces....
Ok, I have this script that will look for files with the .pl4 extension and rename them with the modification date... But it breaks when the file has a space in it... (files are on windows machine) ive been trying to fix it but no luck.... Any help is greatly appriciated..
#! /bin/sh for file in $(find -name '*.pl4'); do dd=`stat -c %y "$file"`; dd=${dd:0:10}; echo $(basename $file); cp "$file" "../pathloss/$dd-$(basename "$file")"; done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|