Description:
Using and programming the Unix shell.
|
|
|
Understanding escapes in echo
|
| |
Hi,
Can anyone help me to understand the following behavior of echo?
bash-4.2$ echo \\n
\n
bash-4.2$ echo \\\n
\n
bash-4.2$ echo `echo \\\n`
\n
bash-4.2$ echo `echo \\n`
n
|
|
shell scripting firefox
|
| |
Hello,
I am trying to create a bash script that does the following
firefox [link] Ctrl-S ENTER Ctl-Q
in other words I invoke firefox from the command line with the url I
want to go to
then without touching the keyboard,
the Control + S Keys are pressed, Then without touching the... more »
|
|
Very Huge collection of Solutions Manuals & Test Banks
|
| |
Hello,
We would like to inform you that we have updated our list with the
following new titles.
You can contact us directly at Student.p24(at)Hotmail(dot)com .
If the title you are looking for is not listed, do not hesitate to
contact us,
we will try to help.
==========
2011 Federal Taxation, 5th Edition 2011, Pratt.Kulsrud, Instructor... more »
|
|
How to separate a File-Extension
|
| |
Hello @ all,
I am writing a shell script to do some conversion:
#!/bin/bash
ls -1 *.cwk | while read FILE_OLD
do
FILE_NEW=$FILE_OLD".txt"
cat $FILE_OLD | [... do some recoding ...] > $FILE_NEW
done
This converts myFile.cwk into myFile.cwk.txt. How could I calculate... more »
|
|
ZLS_COLORS is reset on completion?
|
| |
I'm using Zsh and when I do a completion, my ZLS_COLORS variable is
reset to some default value:
% export ZLS_COLORS='di=34'
% echo $ZLS_COLORS
di=34
% ls a<Tab>
a1/ a2/
^C
% echo $ZLS_COLORS
...(-
default-):*.jar=01;31:*.doc=35 :*.pdf=35:*.ps=35:*.xls=35:*~= 37:*.html=35:*.htm=35:*.pdf=35 :*.ps=35... more »
|
|
using && to test true with multiple conditions
|
| |
In bash if we use && to execute the right hand side, if the left side
is true:
e.g.
echo "true" && true
Can I combine this with another command which is not true?
In simple terms i want to run 2 commands, and only execute the action,
if command1 returns true and command2 returns false, on one line... more »
|
|
cronjob is not executing.
|
| |
I have the following shell script
-->cat capture.sh
TIME=$(date +"%H-%M-%d-%m-%y")
IP="203.208.198.29"
PREFIX=$TIME$IP
tshark -f "udp" -i eth0 -w /root/captures/$PREFIX.cap&
pid=$!
sleep 2m
kill $pid
it runs fine when i execute it from shell.
but when i add it to the cron tab nothing happens.... more »
|
|
How To Insert an Escaped Apostrophe With Sed?
|
| |
The problem to solve are UNIX filesystems full of user files with
special characters in the names. These are the typical characters )
(*', etc.
The approach I've taken is to use the find command to produce an input
list of filenames. Then manipulate those entries and produce a script
full of move commands to rename the offending files. The script full... more »
|
|
Vim question
|
| |
Where is the appropriate forum for this?
In Vim, when the view is split into multiple "windows", I want the
mouse wheel to scroll the view under the pointer. Currently it scrolls
the currently selected window How can I configure Vim to do that?
|
|
|