Need help with sed scriptview story

http://www.unix.com – I wanted to create a script for batch file renaming if I run the following from the command line Code: for i in *.docx; do  mv "$i" "`echo $i | sed "s/%/_/g"`"; done it works....but when I create a script file name rename.bash with the following code: Code: #!/bin/bash for i in *.docx   do     mv "$i" "'echo $i | sed &q (HowTos)

What is the simple Linux utility that is like cat but works via TCP (to be used for port knocking)?view story

http://serverfault.com – For port knocking over at my old job, one of the SAs use to perform something like the following: echo 'blah' > tcpcat -a -p 2222 && ssh [email protected] I cannot remember the command that I am referring to as tcpcat. Does anyone know? (HowTos)

Multiple Command List After Shell Conditionals, &&, ||. Shell Script, Dashview story

http://unix.stackexchange.com – I'm trying to do multiple commands after a condition, so for example... [ $VAR ] || echo "Error msg" ; echo "exit" and the Inverse [ -z $VAR ] && echo "Error msg" ; echo "exit" I know that won't work as intended, I actually knew how previously and forgot how to do this. I'm fully aware of the many alternatives, such as using if's or bracketing via () and {} . (HowTos)

Using Awk to Search to a Certain point in Fileview story

http://www.unix.com – a command like the one below will search a file from the date and time specified to the END of the log. Code: awk "/^2011-12-26 14:37/,0" /apps/prodction.log How do i make it so that it doesn't search to the END of the log but instead stops at a specified section of the log. for instance, if i wanted to only search from "^2011-12-26 14:37" to "^2011-12-26 14:58 (HowTos)

.ssh/config way to spectify pseudo-tty allocation and command execution (like screen)view story

http://unix.stackexchange.com – Is any way to specify in .ssh/config command like ssh -t remote-host "screen -dR screen_name" so I can easially access to the remote screen with ssh remote-host ? Right now I solved this problem by custom script $ cat ~/bin/sssh #!/bin/sh /usr/bin/ssh -t $1 "screen -dR ab" ~/bin stay first at $PATH, but it is so unflexible and ugly.. also I should find way to implement host autocompletion (HowTos)

Send a command to a running tmux session (like screen -X)view story

http://unix.stackexchange.com – I'm looking to switch from screen to tmux for my terminal multiplexing needs, but there's a feature of screen that I need to replicate in tmux: the -X option, which allows one to run arbitrary screen commands inside an existing screen session. (HowTos)

good video wallpaper sitesview story

https://bbs.archlinux.org – Yes, I am running video in place of a static background image. I am using plain Fluxbox on an Arch Linux box and running mplayer in my root window. Although, I am having trouble getting mplayer to ignore my keyboard commands. (HowTos)

Surprise! Full Circle Magazine #56 – I Come Bearing Giftsview story

http://fullcirclemagazine.org – Surprise! Since everything is in place there’s no point in holding back the issue until next week. (Distributions)

how to create a 'static input field' in your terminal?view story

http://crunchbanglinux.org – this is not a how-to, it is a question.is it possible to create a 'static input field' in a terminal? for example, when i use irssi, the text appearing on the screen is not interfering with what i type in my command field. (HowTos)

Please help me with my homework!!!view story

http://www.unix.com – A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc. Shell : In computing, a shell is a piece of software that provides an interface for users. (HowTos)