Search Results

Search: Posts Made By: #moveon
1,946
Posted By #moveon
Thanks!
Thanks!
1,946
Posted By #moveon
Writing a text to many files
Is there a command in shell-script that I can use that copies a string or writes it to many files? Say I have files a, b and c and I want to copy or write the text "Hallo, I am a newbie!" to all...
4,266
Posted By #moveon
Counting the number of times a character appears
I am looking for a bash command that counts the number of times a character appears in a file. For example "I am a newbie, trying to learn shell script". Then the command counts the number of e and...
Forum: Programming 05-27-2009
3,982
Posted By #moveon
Signal handling
I am trying to write a small program where I can send signals and then ask for an action to be triggered if that signal is received. For example, here is an example where I am trying to write a...
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
How can I install bc then? From the terminal,...
How can I install bc then? From the terminal, maybe there is a simple way to do it?
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
I used the fast one which is $ echo...
I used the fast one which is $ echo "(120/220)*100" | bc but it didn't work. Says command not found.
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
It says non-numeric argument when I try to...
It says non-numeric argument when I try to execute it
1,885
Posted By #moveon
Non-integer caluclations
Hey I am trying to calculate a number but I found out the expr I knew works only with integers. Any help. I want to calculate (120/220) *100.

Thanks!
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
Hey I learnt now how to perform basic threat....
Hey I learnt now how to perform basic threat. However I am stuck with doing basic arithmetic for non-integer values. For example I want to perform the operation (120/220) *100.
28,106
Posted By #moveon
Number of lines containing a certain string
Hey I want to know if there is an option to know the number of lines containing a certain string (bit for example) in a file? Say I want to know number of lines containing only the string BIT in file...
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
Hey sorry, thanks. Without a bracket, it works....
Hey sorry, thanks. Without a bracket, it works. So you just say 9*\10 /100.

Just another questions: how can I get the lines of a command in man page. Like I just typed man expr and I want to know...
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
Thanks. What if I want to perform more than one...
Thanks. What if I want to perform more than one operation in an equation. Like I want to do (9*10)/100. I just learnt that expr \* is used for multiplication and expr / for division but the bracket...
Forum: Fedora 05-22-2009
41,650
Posted By #moveon
Simple arithmetic in shell
Hey, I just wanted to know how one can write simple arithmetic like addition, subtraction, multiplication and division in shell-script.
1,917
Posted By #moveon
I write a shell and then I after I run the shell,...
I write a shell and then I after I run the shell, I get something as ouput. For example, I write a shell that gives me the date of the system and its name, and then I want to copy all these output...
1,917
Posted By #moveon
Copying the output of a shell to another
How do you copy the output of a shell to another? I went to, for example, copy the output of shell a to shell b. Do you use cp or what?
1,888
Posted By #moveon
OK, I will explain. There are numerous commands...
OK, I will explain. There are numerous commands as you know and with the man page you can know about this command. So let us say, I type in man ls for example, or with an option man ls -l, and I get...
1,888
Posted By #moveon
Hey sorry, it is not working. I mean if I want to...
Hey sorry, it is not working. I mean if I want to know number of lines in a command, I use? I tried to use ps -ef | grep without the pr because I wanted to know only the number of lines in the...
1,888
Posted By #moveon
Oh OK. I just tested it, seems you just add the...
Oh OK. I just tested it, seems you just add the option. Thank you!
1,888
Posted By #moveon
Thank you Pad. Just to understand more. What if I...
Thank you Pad. Just to understand more. What if I want to add an option to the command? Say instead of ps, I want to type ps -e.
1,888
Posted By #moveon
How many lines are in a command.
Hey I am learning shell-script as a beginner. I wanted to know how I can print out the number of lines in a command, is that possible first? I know of the command wc but it only works with file?...
1,303
Posted By #moveon
Percentage of processes schedulers
In Solaris, there are different process schedulers like time share, Interactive etc. Is there a command that you can use that will give you the percentage of processor using Interactive, time share...
6,734
Posted By #moveon
Thanks!
Thanks!
6,734
Posted By #moveon
Ok thanks. But how can I execute a program after...
Ok thanks. But how can I execute a program after I finish writing it?
6,734
Posted By #moveon
Yeah I know it is unix. But I wanted to learn...
Yeah I know it is unix. But I wanted to learn shell scripting.
6,734
Posted By #moveon
lol really not. I am a complete newbie. It is my...
lol really not. I am a complete newbie. It is my first program. I learn a few commands like echo, cp, cat, etc and I now want to practice with writing basic programmes like printing out names etc....
Showing results 1 to 25 of 38

 
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy