1,978 Topics
![]() | |
Instead of typing :sh and being taken to the shell prompt after temporarily quitting vi, is that possible to open a split screen which is shell? Because it is difficult to keep track of whether a vi is open if working a long time in shell. | |
I have to press :q twice or more that I don't like. | |
why is there a + infront of 100k but a - infront of 500k? | |
from wikipedia: 1. [CODE]find . -name "*.foo" -print0 | xargs -0 grep bar[/CODE] The above command uses GNU specific extensions to find and xargs to separate filenames using the null character; What is the null character? What is the significance of "separate filenames using the null character;"? why should we … | |
There are so many information dispersed in so many places. And most of them kind of cover the same set of topics like ps, cd, pwd, chmod, chown, etc. But there are so many things to learn. Really need some advice how to muster all the knowledge. | |
I was wondering where I can find the complete list of unix/linux utilities which can be found in all standard distributions. There is a list in wikipedia: [url]http://en.wikipedia.org/wiki/List_of_Unix_programs[/url] Is that all? | |
How do you perform a command on multiple files? I have tried different variations such as: [CODE]move test+test1 test2 move "test""test1" test2 [/CODE] I have also tried the absolute file paths but no attempt has worked. I want to pick out specific files in the directory. Is there no other … | |
please can somebody help to write shell script that listen to the transmitting ports | |
I have file which is having large data in it. and there are some repeated rows. Basic idea here is : Sort data, remove duplicates based on first field and then print the whole.... I have tried teh following but no help.. [CODE]#!/bin/sh if [ $# -ne 1 ] then … | |
Hi, I want to know just the name of the files that contains a given pattern. Then I would open the files in vi and replace the pattern. But using grep -n '&&&' * gives all the occurrence of the pattern which is not very helpful. How do I view … | |
I noticed typing in shell like man printf shows a man page entry. Usually there are man pages for each command. I mean man pages are supposed to be for APIs and external interfaces (like g++, etc). How did the internals of say the c standard library functions end up … | |
Is there a method in Linux to monitor a port for activity, then when found, execute a script? For example, when tftp port 69 is accessed, run a script that runs commands? thank you. | |
Hi everyone! I'm trying to write up a linux shell script to automatize the playing of video file collections. Basically, I want to be able to make a script so that, while it's sitting on a specific folder, when I run it, it plays the first unwatched file in the … | |
Howdy People :) I'm a newbie & its my first question here. I've started learning Unix Bourne Shell scripting recently and struggling already :p Can someone PLEASE help me with the following problem. Somehow my script is not working. * Display an initial prompt of the form: Welcome to machine … | |
Hi, I wrote a ruby code that writes to a file: open('file.txt', 'w') {|file| file.write(arr.join("\n")) } when I try to get the number of line counts wc -l file.txt I get the count as 49 instead of 50. How to overcome this? My file might not have a new line … | |
hi there i have an assignment about writing Cshell with some features i m not gonna ask plz gimme the codes or smth. but i need some advice how to start writing it, what to do maybe smn can show me ways to do it , thanks for help here … | |
Dear all, I need your help please I have a batch file on windows. I need to read from a text file a list of file names, the content of the text file is for example filename1;filename2;filename3 Then, i need to verify in a directory that is an input parameter … | |
Hi Through shell script we put a file on remote sever. After putting file on that server it goes into inbox folder and it appends a hash code to file name. So when getting back the same file from inbox folder it is giving me following error. [COLOR="Red"] /inbox/TESTFILE*: No … | |
Hey a question, In my .sh, I've use a solve command, which solves a problem and output it to the terminal. But I need away to save the output into a txt file, to parse through it.... The solve command output first line is Satisfiable or Unsatisfiable and then the … | |
Hi is there any way to run a shell script from a batch file? im new to this and any help is really appreciated. Thanks | |
Frequently we need to copy-paste a code snippet and compile-run it. The problem is that the lines of code are tagged by line number. So what utility to use to elegantly discard the line numbers? | |
hi, i found this site by accident and am giving it a go for some help needed. I am new to linux and am using Debian Lenny at the moment. I am finding that a lot of my tasks can be made a lot simpler and quicker if i just … | |
I have a bunch of text files with different formats that somewhere in the file have email addresses. I would like to be able to parse through any number of these files for email addresses. Here are the types of input: CFO: [email="some_cfo@domain.com"]some_cfo@domain.com[/email] [email="misterman@domain.com"]misterman@domain.com[/email] The Main Man [email="mainman@domain.com"]mainman@domain.com[/email] To take … | |
Hey all, How can we create a new PostgreSQL database using a shell script? | |
Hi, i didn't know whether to put this under C or Shell scripting so i chose this one. Well I am doing a piece of shell scripting and have written some code. and basically when i run it no prompt shows up so i cannot type commands like help or … | |
Hey all, I wish to execute a shell script on click of a button from a simple html page. How do I do this? Need help!!! Thanx, Shreerang Patwardhan. | |
Hello I would like to make some kind of download manager that you can feed a file of links which it would then download. I can make it work for one at a time but it takes like forever to do them all and my internet connection isn't fully used … | |
I'm writing a shell script for I can launch a program from the terminal using ./AppName but how can i get the return value either 0 or 1 to determine if the program executed correctly | |
Hello, I have been trying to use the ID3tool to organize a list of MP3 files in a windows bat file. I have completed it in bash and I'm trying to convert to batch right now. Anyway, here is my problem: I'm trying to get the album name for the … | |
Hi All, I am trying to execute a [icode]find[/icode] command to retrieve all files of a specific type, e.g. images. Rather than using an OR'd list of suffixes with ~every~ image type, I wrote a small script that returns the mime-type (image, application, executable, etc). The problem is getting it … | |
Hi, I wrote this simple bash script(yeah simple now that its done) and it uses bc - 'The arbitrary precision calculator language' and tr - 'translate or delete characters'. Now the script works, it will take input values and convert them to the proper output values. Now my question is..is … | |
hi i have written a script whose output is getting mailed to me using crontab what i want it to do is mail it to someone else. this is what iam doing. 37 01 24 1 * /usr/local/bin/perl /tpf106/data2/cis_web/cis3/cis3.11/work/rishi/s-branch/perl1/perl/compare.pl | mail -s "file compare output " [email]rishi83@yahoo.in[/email](not real) but [email]rishi83@yahoo.in[/email] … | |
It might be a basic question, but bear with me as google didnt help. I want to create awrapper for cmd.exe that is more comfortable in terms of user interface (I enjoy a lot Konsole in *nix). Right now I have no Idea how to hook to cmd.exe and get … | |
I'm writing a shell script that can take zero to 2 user arguments. I have an if statement to check to see if any arguments were entered and then I have a case to enter the arguments into the correct variables. This all works great. Now, I want to add … | |
Hi folks, Using shell script I'm running two java applications at background. The output of 'ps -ef' is UID PID PPID TTY STIME COMMAND Amar 2388 1 con 15:35:58 /usr/bin/bash Amar 1272 1 con 15:44:29 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java Amar 3972 1 con 15:44:55 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java Amar 1600 2388 con 15:46:12 /usr/bin/ps … | |
Hello Friends, I have a small challenge, i need to motify a shell script designed to monitor an oracle database. It should notify the DBA when the listener & database is down and also notify when there is any error in the alert log. Note: The sendmail feature should not … | |
Dear All, I am using solaris server and RHEL5 server . Please anyone send me a shell script to monitor the server cup and memory utilazation And export that data to a csv file. Regards, pravat | |
Hello everyone. I am trying to write an application that uses OpenGL (with GLFW) for graphics. It is meant to be as portable as possible, and I try not to have direct interface with platform specific things other than through GLFW (I can also use SDL). The problem is that … | |
Write a shell script named displayargs that prints FOUR lines. The first line tells the name that was used to invoke the script, the second line tells how many parameters there were, the third line tells what the last parameter was, and the fourth line tells what the first parameter … | |
Hi, I would like to get the following script to work. The script should search for file that are bigger then 200 and that have been created or modified today! The problem is the comparator == does not work! when i compare the ( $6 == $dat ) i don't … | |
Hi All, Is there an easier way to get the disk space used, file count, and folder count of a parent folder using BASH commands that is faster than using the 'find' and 'du' commands? In short, I want the same information that the Windows Properties window shows when you … | |
Hello guys - Need help with a windows batch script that would kill processes by the memory usage but leave the last one. For example if i have 10 java.exe processes running i want to kill the top 9 by memory usage and leave the last one alone. Help appreciated! … | |
I am trying to execute a simple grep command in my shell script. I am not sure why it also greps the other file system. [COLOR="Green"]> df -g|grep /oracle/BP1/sapdata1 70.00 11.37 84% 21 1% /oracle/BP1/sapdata1 100.00 89.44 11% 8 1% /oracle/BP1/sapdata10 > df -g|grep /oracle/BP1/sapdata10 100.00 89.44 11% 8 1% … | |
hi, how can i measure the accurate run time of a program by writing a shell script? Like I want to use some for loop and run some samples and then i want to subtract the end_time-start_time to get the duration and thereby average. | |
Hi All, I am a newbie and I am trying to write a script to be run in solaris so that it will send email to admin about the file system statistics e.g. file system current size, amount of space left and all root emails about system health. Any help … | |
I have a text file that reading the directories i need to create the only problem is I need to include a if statement to check if the directory is already made. How do I go about doing this I have these two files currently.. [CODE]#1/bin/bash cat directory.txt | while … | |
hello friends, This may sound very primitive, but that's no wonder cos I am very new to this. I would like to know how to find out the current operating system that I am using, with shell commands. For example, if I am using ubuntu and fedora , and a … | |
hi friends, I need some help in keeping count of particular IP addresses that I read from a text file with ip addresses.i.e let's say 123.456.789.123 - 15 times, 542.432.456.123 - 6 times etc etc ...thanks in advance | |
Hi folks I have tried posting this in the python forum without any luck ([url]http://www.daniweb.com/forums/post1120606.html#post1120606[/url]), as well as on the official Intel Fortran forum (because I have also attempted it in Fortran). I am not one inch closer to solving this. All I want is to be able to overwrite, … | |
Hi guys, I have a shell script which is to run on multiple OS, I have the following two variables declared: [code] NPAID_CMD="ps -A -o pid,comm | grep NParchiveSM | awk -F \" " '{print $1}'\" SHMMAX="echo "Not impletemted on $OS"" [/code] On Linux the above decelerations are fine and … |
The End.