| PLEX86 | ||
|
BASH Command Query!! Organisation: Free Agent via Linux OS and Wine EmulatorI am trying to batch process a bunch of camera photo files and have a working command but I'm trying to refine it. I have a series of photo files with the following syntax: crw1270.crw crw1271.crw I have written a script to convert to a low res jpeg: crw1270.crw crw1270.crw.lo.jpg crw1271.crw crw1271.crw.lo.jpg Hard Drive Mounted ReadOnly Hi, I am running Linux Knoppix 3.6 from CD-ROM on the Dell Laptop Albreastude option, but it is still read-only after it was mounted . The following is capture of... But, I'm trying to shorten the resulting output file name a bit. I've tried the following command (watch for the line wrap): for i in *.crw; j=`echo $i cut -d "." -f 1`; do dcraw -w -c $i To attempt to get this result ... crw1270.crw crw1270.lo.jpg crw1271.crw crw1271.lo.jpg But I get this error message! -bash: syntax error near unexpected token `j=`echo $i cut -d "." -f 1`' Can anyone suggest a simple solution or point out what I'm doing wrong?!?! This is really just a "nice to have" but I haven't run into this problem in a shell script, only in this extended command method. Thanks in advance! -- ------------------------------------------------ SPAM Reduction: Remove "x." from my domain. ------------------------------------------------
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||