hi:
i have a file that lists filenames that are to be renamed:
oldname:dir name:newname
at least the dirname contains spaces.
now i am trying to do the equivalent of:
awk -F: '{ print $1, $2, $3 }' filenames | while read old dir new;
do mv "$old" "$dir/$new"; done
this works with bash if i escape the spaces with \:
oldname:dir\ name:newname
however no matter what i try, i can not get read in fish to group the
values as intended.
is this a problem with read or
does anyone have any clues as how to solve this?
greetings, martin.
--
cooperative communication with sTeam - caudium, pike, roxen and unix
offering: programming, training and administration - anywhere in the world
--
pike programmer travelling and working in europe open-steam.org
unix system- bahai.or.at iaeste.(tuwien.ac|or).at
administrator (caudium|gotpike).org is.schon.org
Martin Bähr http://www.iaeste.or.at/~mbaehr/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users