9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, I don't have much experience with shell scripting and I was wondering if there's a shorter way to write this.
Basically, given a list of strings separated by new lines, I want to prepend each string with a prefix and separate the strings with commas
i.e.
stra
strb
strc
becomes... (3 Replies)
Discussion started by: vshan
3 Replies
2. Shell Programming and Scripting
can some one please help me at my post ?
for hours yet being ignored
Need help on this:
nonsense. can't even solve forum ask people redo whole code. LMAO - after asking 101 qns
the pre result should be like this:
A A A A A
A A A A A A
A A A A A
A A A A A A
A A A... (27 Replies)
Discussion started by: nanochan1
27 Replies
3. Shell Programming and Scripting
the code below is a small fragment of the actual line, in fact i have about 20 values i'm comparing and want to know if it can be simplified. other than the x.xx.xx format of the value they have nothing in common
if || || ; then
do this
else
do this
fiany suggestions? (6 Replies)
Discussion started by: crimso
6 Replies
4. Web Development
I am just getting into web development and I want to understand it better and more theoretically. :D
So by now I can create some basic websites with html, css, php, etc, but what I do not understand is how is this then projected into the world wide web or what we call the internet??? Of course... (2 Replies)
Discussion started by: vas28r13
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
Is there a way to simplify the below script? Because I am having problems executing this if I added this to CRON. Also, you may notice that its objective is to put all information in one file (rm1.txt). And in addition file "sRMR_6.txt" to sRMR_23.txt" changes its information everyday.... (4 Replies)
Discussion started by: vibora
4 Replies
6. Shell Programming and Scripting
tcpdump -nr testdump|awk '!/:/;gsub(/^+|+$/,""){print $3};a!~$0;{a=$0};{print $3};!/length/;/./;!/11\:/;!/8 7 6 5 4 3 2 1/;!/UDP/{b=$0} END {for (j=i-1; j>=0; ) print b };{for (i=NF; i>0; i--) printf("%s ",i);printf ("\n")}'
*NOTE IN j>=0 the ; ) was given a space since a smiley is showing up...... (1 Reply)
Discussion started by: sil
1 Replies
7. Shell Programming and Scripting
Is there a way to simplify stating 1 through to 10, for example in a for loop construct?
for x in 1 2 3 4 5 6 7 8 9 10
do
....
done
I have tried (1-10) with no luck.. thanks (2 Replies)
Discussion started by: sirtrancealot
2 Replies
8. UNIX for Dummies Questions & Answers
hey, have been set this question at school and cannot think for the life of me how to do this. Ive thought about setuid/setgid and things like that but cant make any snese of it. Can anyone help?
question reads:
You have a file which has the names, email addresses,
mobile numbers and sales... (1 Reply)
Discussion started by: biffa
1 Replies
9. Solaris
Hi - Maybe not the right forum for this but I will ask anyway..
I recently installed apache on my ultra 10 - solaris 9...
Working okay - and I have some docs in my htdocs directory that I can access through a web browser..
Now I want to get a bit fancy and change the home page so I can... (2 Replies)
Discussion started by: frustrated1
2 Replies