Search Results

Search: Posts Made By: Jenny.palmy
32,061
Posted By Jenny.palmy
Change field separator of grep from : to space
Hi, All,

I wonder how to change the field separator of grep from : to space when use grep to display.

for example when I use

grep -e 'pattern1' -e 'pattern2' -n filename

to find...
3,708
Posted By Jenny.palmy
how to get the value of a numerical expression
Hi, All,

I want to calculate a specific value of a Gaussian distribution, say the mean is a=3, variance is b=5, the indepentent variable is x=2, how could I get the y which is the Gaussian...
2,089
Posted By Jenny.palmy
sorry, I think there is misunderstanding. for the...
sorry, I think there is misunderstanding. for the original file

"TEST/DR1/FELC0/SI1386.rec"
0 1513 !ENTER 1513
1513 2994 q 1481
2994 4440 iy 1446
4440 5080 v 640
5080 6266 ih 1186
6266 7436...
2,089
Posted By Jenny.palmy
what I got is "TEST/DR1/FELC0/SI1386.rec" 0 ...
what I got is
"TEST/DR1/FELC0/SI1386.rec" 0
0 1513 !ENTER 1513
1513 2994 q 1481
2994 4440 iy 1446
4440 5080 v 640
5080 6266 ih 1186
6266 7436 n 1170
7436 10360 eh 2924
10360 12338 !EXIT...
2,089
Posted By Jenny.palmy
Thanks for your help. It works for this...
Thanks for your help.

It works for this example, but when I change the threshold from 500 to 200, it does not work.
2,089
Posted By Jenny.palmy
How to label a specific file
Hi, All,

I have a file, it looks like:

"TEST/DR1/FELC0/SI1386.rec"
0 1513 !ENTER 1513
1513 2994 q 1481
2994 4440 iy 1446
4440 5080 v 640
5080 6266 ih 1186
6266 7436 n 1170
7436 10360...
4,221
Posted By Jenny.palmy
How to join two strings together
There is a file:

!EN
ih
n
w
ey


I want to join the current instance with its previous instance together, such as: previous_instance-B+current_instance, there "-B+" is fixed iterm,...
9,517
Posted By Jenny.palmy
Thanks, era. Do you think you can recommend...
Thanks, era.

Do you think you can recommend me some book or websit? I would like to learn more about script. I alwasy encounter some problems, and could not figure out by myself.
9,517
Posted By Jenny.palmy
Thanks, it works. I wonder how to use awk...
Thanks, it works.

I wonder how to use awk to do this.
9,517
Posted By Jenny.palmy
How to use sed modify specific lines
Could anybody tell me how I can use sed to modify lines following specific lines? the file is as following:

"TEST/SI1573.lab"
3670 8920 h#
8920 9530 hh
9530 10694 ih
....
5,686
Posted By Jenny.palmy
arithmetic operation on two columns
Hi, All,

I have a file, its content is as follows:

100 150
120 135
140 170

I want to insert a column, its content is determined by the difference between the two values in the same...
12,096
Posted By Jenny.palmy
Yeah, it works, thanks.
Yeah, it works, thanks.
12,096
Posted By Jenny.palmy
Can I use sed to insert a string which has colon
Hi, all,

I wonder if I can use sed to insert a string which has a colon.

I have a txt file a.txt like the following

TRAIN/DR1/FCJF0/SI1027.MFC
TRAIN/DR1/FCJF0/SI1657.MFC

I want to...
83,724
Posted By Jenny.palmy
Thanks, era. I find a way to fix it. Save...
Thanks, era.

I find a way to fix it. Save it in UltraEdit from dos to unix style.

Thank you for your help. I was too pessimistic.
83,724
Posted By Jenny.palmy
Thanks for your replies. Yes, I do use a...
Thanks for your replies.

Yes, I do use a winXP os. Maybe I need to run it on real unix system. It seems like there is no a easy way to run it on windows.
83,724
Posted By Jenny.palmy
How to use cygwin to run bash script
Hi, all,

I try to run a quite simple bash script mytest.sh in cygwin, it's content is:

#!/bin/bash

echo "It is my first bash shell"

there are three...
Showing results 1 to 16 of 16

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