I have 64 bit ubuntu in office and for some strange reasons, it installs 32 bit flash player through apt-get. To install 64 bit version here are the commands to copy paste in terminal. wget -O flash.tar.gz http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz tar xvzf flash.tar.gz mkdir -p ~/.mozilla/plugins mv libflashplayer.so ~/.mozilla/plugins pkill firefox firefox
IF we want to rename all the files with a part of the file we can do something following: for file in $(ls); do nn=$(echo $file | awk -F'_' '{print($2)}'); mv $file $nn; done
This is how we use a command line / bash variable (named num) in a awk command. We define an awk variable 'var' with -v option. This also shows use of BEGIN block. awk -F, -v var=$num 'BEGIN{srand(var)} {print $1","$2","rand()}' file_name
Comments
Post a Comment