VoIP, SIP, TDM Tips
VoIP,SIP, H.323, Cisco & Linux tips
Friday, January 30, 2009
replace a string from name off all files in a directory.
To replace a particular string from the name of all files in a
directory follow the below steps
create a file script.sh and change its permission to 644
write the below thing in the script
here in the below example we are replacing the string
in
with
all
from
all files in the directory.
for f in *-
in.wav
; do mv "$f" "${f%-
in.wav
}-
all.wav
"; done
Tuesday, January 20, 2009
Searching a particular string from unknown file or to search a file from the known string of that file
grep
string_to_Search * -Rn
note:- the string here (a sentence or word) is the one which is there in some unknown file and you want to know the name of that file.
Thursday, January 8, 2009
HIDING SSH CONNECTION
use the below command to hide your ssh connection
ssh -T user@host /bin/bash/ -i
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)