8
Rename multiple files in bashview story

http://stackoverflow.com – I have A.js, B.js, C.js in a certain directory and I want to write a SINGLE command line in bash shell to rename these files _A, _B, _C. How can I do this? I tried find -name '*.sh' | xargs -I file mv file basename file .sh but it doesn't work, basename file .sh isn't recognized as a nested command (HowTos)

8
how to parse this data and count the matching patterns? [closed]view story

http://unix.stackexchange.com – Gi1/0/12 Gi1/0/13 Gi1/0/14 Gi1/0/15 Gi1/0/16 Gi1/0/17 Gi1/0/18 Gi1/0/19 Gi1/0/20 Gi1/0/21 Gi1/0/22 Gi1/0/23 Fa2/0/13 Fa2/0/14 Fa2/0/15 Fa2/0/16 Fa2/0/17 Fa2/0/18 Fa2/0/19 Fa2/0/20 Fa2/0/21 Fa2/0/22 Fa2/0/23 Fa2/0/24 Gi2/0/1 I want to parse this data so that I can have the no of regexvalue start end count Gi1/0/ 12 23 12 Fa2/0/ 13 13 12 Gi2/0/ (HowTos)

8
cd to a directory and execute many commandsview story

http://unix.stackexchange.com – I have following script. (HowTos)

8
Cannot delete file from /home by rm commandview story

http://askubuntu.com – I cannot delete a file in my /home folder. Terminal output give me the message: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: ошибка синтаксиса около неожиданной лексемы(' roughly translated: ~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) bash: syntax error near unexpected token '(' (HowTos)

8
[ubuntu] Kiosk PC Power Managementview story

http://ubuntuforums.org – Hello, I want to configure a kiosk pc with opera in kiosk mode. so I installed Ubuntu 10.12 minimal with sudo apt-get install xserver-xorg-core xinit sudo apt-get install rungetty tty1.conf: exec /sbin/rungetty –autologin username tty1 .bash_profile: startx .xinitrc: exec opera --k everything work well, after booting opera appears in kiosk mode the problem is, that I found no way to set pow (Hardware)

8
Simple replacement of init to just start consoleview story

http://stackoverflow.com – On a very simple PC, I want to replace Ubuntu 12.04 /sbin/init by the most simple bash script in order to have the very minimum number of running processes. Obviously, no X, no USB, no detection of new hardware, no upgrade, no apt, "nothing", I just need a working console with a DHCP-based Wi-Fi IP address (ssid, passphrase are already stored in /etc/network/interfaces). That's all. (HowTos)

8
Executing bash script with tilde in pathview story

http://stackoverflow.com – I am trying to execute in linux: command[0] = "~/test/bin/runScript_sh"; Runtime.getRuntime().exec(command); But get an exception java.io.IOException: Cannot run program error=2, No such file or directory Probably because it can not evaluate tilde. What can be done? (HowTos)

8
`openssl`: Subject Alternative Nameview story

http://unix.stackexchange.com – I wrote this bit of code to get the Common Name of the subject field in the SSL certificate for a given domain: $ echo -e "GET / HTTP/1.1\nEOT" | openssl s_client -connect google.com:443 2>&1 | grep subject subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=*.google.com However, this only gives me the “subject” value. (HowTos)

8
A Juju Charm that configure dependencies to work with jenkinsview story

http://askubuntu.com – I'm doing a charm that installs jenkins and stuff. If the User already have an account on github and create a new repository named "builder", he can put the dependencies for the job as app engine, gwt ... and can still put a bash script for installation of other dependencies or even organization of folders. It can also be placed a config.xml file that would create the job in jenkins. (HowTos)

8
bash script : is it possible to recognize video format from files (to batch extract audio from them)?view story

http://askubuntu.com – I have written a little bash script to extract audio from video files in batch mode. Sound is extracted from each mp4 file to flac format using avconv (and the flac codec). #!/bin/sh # # Batch conversion of audio extraction from video FOLDER_SRC="/home/Me/Music/TestBatchConv" for myvid in $(find ${FOLDER_SRC} | grep mp4) do avconv -i $myvid -acodec flac "${myvid}.flac" done exit 0 It works (HowTos)