9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Please can you help how do I count the number of specific characters or words that appear in a file? (8 Replies)
Discussion started by: fretagi
2. Shell Programming and Scripting
I would like to create a for loop or whatever is quick that will print the one’s place of a number for 1-N times
say for example a printed page formatting is 132 characters wide,
I would like a single line
That is 132 characters long. I... (11 Replies)
Discussion started by: KmJohnson
3. Shell Programming and Scripting
I had another question. I was wondering if there was a way to tab a line a variable number of times in tcsh. To go into details, I want to tab a line by how deep a file is in its path.
So here is an example code:
set... (4 Replies)
Discussion started by: chu816
4. Shell Programming and Scripting
I apologize for the title but I am not even sure myself what to call this. I am going to use an example of a pizza delivery. I need to make an interactive script that allows users to order a certain number of pizzas, and then choose what they want on each pizza. Here is my code so far....
... (1 Reply)
Discussion started by: cstadnyk1
5. UNIX for Dummies Questions & Answers
So I have a problem. I have been doing real good figuring this stuff out on my own but Im a newbie and stuck on something that is probably real basic.
I want to get the following output from the who command:
User TTY Date Time
gd22a12 pts/1 Feb 1 11:34
gd22a13 pts/3 Feb 1... (13 Replies)
Discussion started by: losingit
6. Shell Programming and Scripting
i need to output an ls command to a file but also capture any errors from that command and output them to a log file and the screen.
if it's only possible to output them to a log file and not the screen then that's fine.
this is what i've tried so far, but it won't populate log.txt. i've... (16 Replies)
Discussion started by: mjays
7. Shell Programming and Scripting
Can someone help me out here. I can't get this piece of code to work. i.e. $ALL_EVENTS does not get interpreted in the if brackets. The first part is the code, the second part is the execution of the code. Note: $ALL_EVENTS does equal 2, but there is no value once passed to the if statement. ... (4 Replies)
Discussion started by: jwholey
8. Shell Programming and Scripting
I don't understand this, can anyone explain the evaluation logic used here, and I would really appreciate a general explanation for it.
Here's the korn script:
if (( 2 > 10 ))
then... (1 Reply)
Discussion started by: numstr
9. Shell Programming and Scripting
This is what I tried:
(( vara += 1 ))
Thanks for help (4 Replies)
Discussion started by: pa3be