Search Results

Search: Posts Made By: competitions
12,435
Posted By getmmg
Oops!!.. This should work. perl -le...
Oops!!..
This should work.


perl -le 'foreach(@ARGV){if($_ =~/\$/){$a =$_; $a=~s/\$/\\\$/g;$_=~s/\$//g; print `mv $a $_`}}' *
12,435
Posted By michaelrozar17
Or try.. !#/bin/ksh for file in `ls -1 *\$*`...
Or try..
!#/bin/ksh
for file in `ls -1 *\$*` # Note ls -1(one) and not the alphabet L
do
NEW_FILE=$(echo "$file" | sed 's/\$//g')
mv "$file" "$NEW_FILE"
echo "Moved file: $file"...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy