Thứ Bảy, tháng 3 03, 2007

Lỗi với xargs

1/Gặp một lỗi với xargs, chả hiểu tại sao.
Tự nhiên nội dung của stdin bị thay đổi. Như từ "file_name" nó trở thành " \033[00m\033[01;31mfile_name\033[00m".
Ví dụ, dùng lệnh:

#ls file_name | xargs -i mv {} test
mv: cannot stat `\033[00m\033[01;31mfile_name\033[00m': No such file or directory
mv: cannot stat `\033[m': No such file or directory

Tìm kiếm nguyên nhân tiếp.

2 bình loạn:

pclouds nói...

hì hì mình bị lỗi này hoài hè hè nhưng không nói (nói ra mất động lực tìm hiểu). Chừng nào tìm chán rồi thì mail tui cái ;)

Nguyễn Thành Luân nói...

Hehe, Em đang tiếp tục tìm kiếm :D

Đăng nhận xét | Feed



 
^

Powered by Bloggerblogger addicted por UsuárioCompulsivo
original Washed Denim por Darren Delaye
Creative Commons License