1,817 Topics

Member Avatar for
Member Avatar for Szpilona

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 …

0
95
Member Avatar for LadyAnne

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. …

Member Avatar for LadyAnne
0
956
Member Avatar for RobotFX

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 …

Member Avatar for RobotFX
0
115
Member Avatar for johndoe444
Member Avatar for johndoe444
Member Avatar for Aia
0
66
Member Avatar for johndoe444
Member Avatar for johndoe444

[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 …

Member Avatar for Fest3er
0
135
Member Avatar for twentylemon

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 …

Member Avatar for Aia
0
118
Member Avatar for johndoe444

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.

Member Avatar for penguiniator
0
84
Member Avatar for johndoe444
Member Avatar for johndoe444
Member Avatar for johndoe444

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 …

Member Avatar for nezachem
0
151
Member Avatar for johndoe444

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.

Member Avatar for Aia
0
157
Member Avatar for johndoe444

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?

Member Avatar for Aia
0
63
Member Avatar for johndb

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 …

Member Avatar for Aia
0
104
Member Avatar for wycliffe

please can somebody help to write shell script that listen to the transmitting ports

Member Avatar for gerard4143
0
40
Member Avatar for tuffenuff

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 …

Member Avatar for tuffenuff
0
497
Member Avatar for johndoe444

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 …

Member Avatar for gerard4143
0
93
Member Avatar for johndoe444

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 …

Member Avatar for gerard4143
0
101
Member Avatar for bulgin

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.

Member Avatar for gerard4143
0
32
Member Avatar for Sheltac

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 …

0
53
Member Avatar for methopoth

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 …

Member Avatar for cfajohnson
0
132
Member Avatar for johndoe444

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 …

Member Avatar for cfajohnson
0
104
Member Avatar for bohongtw

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 …

Member Avatar for Aia
0
169
Member Avatar for Sport Girl

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 …

0
57
Member Avatar for abhay_tanu

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 …

Member Avatar for abhay_tanu
0
233
Member Avatar for .11

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 …

0
49
Member Avatar for outkast

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

Member Avatar for issue9
0
171
Member Avatar for johndoe444

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?

Member Avatar for Skifter
0
169
Member Avatar for copa1x1

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 …

Member Avatar for Skifter
0
193

The End.