Search Results

Search: Posts Made By: superuser84
1,942
Posted By superuser84
find replace a pattern and following characters in a word
Suppose that I have a string "one:#red two:#yellow three:#gr'een four:#blu^e" and I want to replace the pattern :# and the following characters in the word with nothing. The output string should look...
12,801
Posted By superuser84
killing all child processes
Hi,

Is there a way I can kill all the child processes of a process, given its process id.

Many thanks in advance.
J.
Forum: Linux 12-11-2007
11,964
Posted By superuser84
Thanks for the reply. But, it just went above my...
Thanks for the reply. But, it just went above my head...sorry :(
Are there any pointers to this or could you make it a little more simpler
What is the parent process in my case ? PID corresponding...
Forum: Linux 12-11-2007
11,964
Posted By superuser84
reserving process id (PID)
I am trying to submit a background process on a remote machine using

ssh -f remote-host "sh my-process.sh"

Normally the process will be submitted and control returned to the local machine (even...
Forum: Ubuntu 12-09-2007
5,948
Posted By superuser84
Writing ISO image to CD
I want to install Ubuntu 7.10 and I have ISO image ubuntu-7.10-desktop-i386.iso .

How can I convert to a bootable CD on linux or on windows.

Thanks,
J.
Forum: Open Source 12-07-2007
196,297
Posted By superuser84
I am trying to install linux Linux on my laptop...
I am trying to install linux Linux on my laptop which already as windows XP.
My choices are Debian (coz I use everyday at work) and Ubuntu (coz I used it once and found attractive). The numbers in...
Forum: Linux 12-07-2007
5,361
Posted By superuser84
I am using tcshell.
I am using tcshell.
Forum: Linux 12-06-2007
5,361
Posted By superuser84
history of commands
I would like to log all the commands I type (on the terminal) to a file. The command "history" does this only for current terminal only. I typically keep around 10 terminals open.

Thanks,
j
...
5,395
Posted By superuser84
awk '{printf ("%s\t", $1) ;}' bla.txt or ...
awk '{printf ("%s\t", $1) ;}' bla.txt

or

cat bla.txt | cut -d ' ' -f 1 | tr -s '\012' '\011'

Hope it helps
J.
5,395
Posted By superuser84
I am not sure I completely understand what you...
I am not sure I completely understand what you want, but you can use tr for the same purpose

cat $input_file | tr '\012' '\011'
Forum: Linux 12-02-2007
5,528
Posted By superuser84
rpm speed of hard disc
How do I find the rpm of my hard disc on linux.

Many thanks in advance.
J.
Forum: Debian 12-02-2007
3,311
Posted By superuser84
vi 7.0 and latex
Hi,

In the new version of VIM that I am using, the sections, subsections are collapsed as shown below:


+-- 36 lines: \subsection*{Aim}-------------------------

If I press space on the...
Forum: Programming 11-25-2007
4,427
Posted By superuser84
Hi cbkihong Thanks a lot. c_str worked for...
Hi cbkihong

Thanks a lot. c_str worked for me.

J.
Forum: Programming 11-24-2007
4,427
Posted By superuser84
STL map
Hi there,

I am using the STL map and I print the map using:

map <string, float> ngram_token_index ;
map <string, float>::iterator map_iter ;

//read the map
...

// print the map
for (...
19,296
Posted By superuser84
awk '{if ($3 == "pattern") print $0}'...
awk '{if ($3 == "pattern") print $0}' your-file.txt

If the delimiter is something else like ":",

awk -F ':' '{if ($3 == "pattern") print $0}' your-file.txt
Forum: AIX 11-22-2007
2,682
Posted By superuser84
find ./ -name '*.ext' -exec compress {} ';' ...
find ./ -name '*.ext' -exec compress {} ';'


I dont know what compress does but this is the way to handle large number of files...for example if you want to find the size of each file in a...
18,245
Posted By superuser84
To Porter: I just realized that I also have to...
To Porter:
I just realized that I also have to lock the file while reading as well to prevent write while reading...Thanks

To Smiling Dragon:
Thanks a lot for the pointer...I tried the sample...
18,245
Posted By superuser84
Mutex in Perl
Hello Everyone,

I just joined this forum and this is my first post.


I would like to know how can I impliment basic read/write locks in perl. I have a database (file) which can be accessed...
Showing results 1 to 18 of 18

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