1,891 Topics
![]() | |
why echo "\v\v\v" prints \v\v\v while echo "this is a moron" prints: this is a moron why \n was escaped but \v not? | |
The page: [url]http://tldp.org/HOWTO/Bash-Prompt-HOWTO/setps.html[/url] shows the best place to change the shell prompt (which is .bashrc). However, the previous page of that document has a lot of escape sequences offered by the Bash shell for insertion in the prompt (From the Bash 2.04 man page) I found that \w (the current … | |
Hi, I've got a lexer created with flex (under cygwin). Normally I compile it to an .exe file. For the newest project I need a lexer to use in a bigger C# program running on Windows XP. Of course I can execute a file using System.Diagnostics.Process. But it is not … | |
Hello I am trying to compare 2 files using awk. They have the same seperators, same columns, same rows. I need to go through both and see at which line they differ, adn then save those differences to another file. I have tried many methods but none seem to work. … | |
Hi! I'd like to know if there's a way to save a webpage address, as HTML (like the browser displays it) and store it under a folder. What I want to do for my website is to create some sort of cache image of the index page, available for me … | |
what is the significance of the "\" and ";" at the end of the command? | |
for the above command what values are passed to the format string %s and %p inside the printf and how? | |
for find what is the difference between the two? | |
[CODE]find . -name 'my*' [/CODE] The quotes avoid the shell expansion - without them the shell would replace my* with the list of files whose names begin with my in the current directory. What thus the above statement mean? Isn't it doing the same thing I mean looking for file … | |
So here's my issue. I recently merged music libraries with a friend of mine, and I've been deleting some stuff that I don't like or whatever. The problem is my zune doesn't delete the folders the music was stored in, and keeps the album artwork stored as well. I want … | |
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? | |
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 … |
The End.