10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to add a new line at the end of a File on Solaris-System:
I think my script should be right, because I evaluated it to other threads. However the script does not what I am expected it should do.
My file might look like this:
And my script could... (7 Replies)
Discussion started by: Timo_HR
2. Shell Programming and Scripting
Hi,when I run my first shell script,I got something that doesn't work right.
I wrote this code in the script.
echo -e "Hello,World\a\n"But the screen print like this:
The "-e" wasn't supposed to be printed out.
Can anyone help me out?:wall:
Many thanks!:) (25 Replies)
Discussion started by: Demon
3. Shell Programming and Scripting
When I run:
echo "\033I see hi in color, but if I run this color is not shown, why?
---------- Post updated at 05:17 AM ---------- Previous update was at 04:43 AM ----------
I had to run more -v.
Thanks (4 Replies)
Discussion started by: iga3725
4. UNIX for Dummies Questions & Answers
how come this command does not work? the error message is:
xargs: cd: No such file or directory
yet, in the same time, 'echo dir_path | xargs ls' works.
Does it work in bash? We use csh.
NB Phil (7 Replies)
Discussion started by: phil518
5. Shell Programming and Scripting
echo "Inside something"
echo $1 $2
val=$(something "Hello " "world")
Inside somethingHello world
But it's not echoing. (4 Replies)
Discussion started by: cola
6. Shell Programming and Scripting
I have entry in the my .profile like below, but still i see $PWD is not defied in my system
echo $PWD also gives me nothing, my env list also give no entry for PWD.Can someone help me setting PWD variable.
I use /bin/sh (9 Replies)
Discussion started by: yesmani
7. Shell Programming and Scripting
I need to test a String (a special ip number-string).
So I want to run that:
# for debugging:
echo $ipadress | egrep -e '172\.?\.??\.??$'
# the test that doesnt work
if test -z `echo $ipadress | egrep -e '172\.?\.??\.??$'` != ""
else... (1 Reply)
Discussion started by: wiseguy
8. Shell Programming and Scripting
I'm very new to scripting and I'm writing a very simple script to restart a couple processes because I'm getting to lazy to cd between directories.
This is pretty much my first script and I just want to add a little cosmetics to it.
Here's what I have:
echo... (5 Replies)
Discussion started by: Setan
9. UNIX for Dummies Questions & Answers
without using ls, just using echo so purely pattern matching
I can say echo */ <-- lists directories
but how would I match files? surely something like *!/ or * but neither work ?
it seems like there isn't much that I can put in but surely i should be able to put any ascii... (1 Reply)
Discussion started by: james hanley
10. Shell Programming and Scripting
I need the line printed with echo to append to eof of to exactly line, am i able to do that?
echo "sysctl -w lalala=1" > to end of file /etc/sysctl.conf
or to the 21st line, if the line exist, open new line and insert text there.
Thx.maybe i'm in wrong topic but anyway... (2 Replies)
Discussion started by: hachik