#!/bin/bash
#remove spaces
for i in *.wma; do
mv "$i" `echo $i | tr ' ' '_'`;
done
#remove uppercase
for i in *.[Ww][Mm][Aa]; do
mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`;
done
#convert file names
for i in *.wma; do
mv "$i" "`basename "$i" .wma`.mp3";
done
#rename test1a, test2a, test3a
#to t1a, t2a, t3a
for i in test*a; do
substring1=${i:0:1}
substring2=${i:4:1}
mv $i $substring1$substring2'a'
done;
gcc -Wl,-Map=contiki.map,-export-dynamic testv6.co obj_linux-native/socketdev_listener.o \ contiki-linux-native.a -o testv6.linux-native /usr/local/bin/ld: unrecognized option '--hash-style=both' /usr/local/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status If you look closely, the error is something related to the local gcc not using the host's linker (ld). $ which gcc /usr/bin/gcc $ which ld /usr/local/bin/ld For some reason, I messed my compiler path. To synchronized gcc to use the host's dynamic linker (i.e. /usr/bin/ld ), set the environment variable COMPILER_PATH to /usr/bin . $ export COMPILER_PATH=/usr/bin $ echo $COMPILER_PATH /usr/bin $ gcc -print-prog-name=ld /usr/bin/ld
Comments