Search Results

Search: Posts Made By: jamie_123
1,291
Posted By jamie_123
Grep for string, but within mentioned bounds
Hi,

I've been trying to filter a file which has several repetitions of lines which looks as follows:

('hello
My name is
jamie
blabla
xyz>>)

Each line has different values in them. I want...
6,363
Posted By jamie_123
Thanks for the response RudiC. Could you throw me...
Thanks for the response RudiC. Could you throw me a pointer on the difference between the cap and the tilda. I thought the tilda sign is used to anchor.
6,363
Posted By jamie_123
Thanks for the response. However I am looking to...
Thanks for the response. However I am looking to match to the content of the line and not line numbers.
6,363
Posted By jamie_123
Find between lines start and end: awk with bash variables
I have a file as follows:
0
1056
85540
414329
774485
1208487
1657519
2102753
2561259
3037737
3458144
3993019
4417959
4809964
5261890
5798778
6254146

I want to find all lines...
2,211
Posted By jamie_123
Hello bakunin, Thank you for the detailed...
Hello bakunin,

Thank you for the detailed answer. I can try to reformulate my question based on your response.
So I am running a linux box using the classical terminal (CTRL+ALT+F1-F6), the...
2,211
Posted By jamie_123
Hi wisecracker, My question was more to do...
Hi wisecracker,

My question was more to do with only CLI and launching graphical applications from the CLI. For example from a tty shell like...
2,211
Posted By jamie_123
Questions on CLI and xwindow
Hi,

I was not sure about the terminology of the thing that I am about to explain, so it was very difficult to find relevant search results.

I want to use my computer using the ctrl+alt+f1 CLI...
1,173
Posted By jamie_123
Hi RavinderSingh13, Thanks for the quick...
Hi RavinderSingh13,

Thanks for the quick response. The solution seems to be very specific, depending on = and numbers. It seems to find other matches in the larger file that I have. Is a general...
1,173
Posted By jamie_123
Print between pattern without spaces
I seem to have hit a curious problem where sed and awk based regex do not seem to work. Perhaps I am missing a switch to look within the same line and not across lines.

I have input as follows:
...
1,899
Posted By jamie_123
Merge lines based on match
I am trying to merge two lines to one based on some matching condition.

The file is as follows:

Matches filter:
'request ', timestamp, <HTTPFlow
request=<GET:
Matches filter:
'request ',...
1,335
Posted By jamie_123
Intelligently merge two files
I have two files as the following:

file1:
243
242
243
242
242

file2:
243 car 360 396k
242 bike 240 217k


I want the corresponding $3 in file 2...
2,562
Posted By jamie_123
Thanks guys! I will try to scavenge a Windows...
Thanks guys! I will try to scavenge a Windows machine and let you know how it went.
2,562
Posted By jamie_123
Should I get the file and run it under Wine?...
Should I get the file and run it under Wine? Would you recommend doing it in a certain way.

Thanks.
2,562
Posted By jamie_123
Hi, Thanks for the response. I must have...
Hi,

Thanks for the response. I must have said that I am running Linux on both the machines. I tried to set rates using ethtool, which did not work.

Thanks.
2,562
Posted By jamie_123
100Mb/s full duplex link
Hi,

I have been trying to connect two computers directly through their LAN cards. One is a 3com 3c905c 10/100 Mbit/s card and the other is an Intel i217-lm 10/100/1000Mbit/s card. I have connected...
3,624
Posted By jamie_123
Hi, Sorry about that. I tried RudiC's...
Hi,

Sorry about that. I tried RudiC's response without the LC_ALL part, which did not work, leading me to think that the input is different. However, I must say that both the solutions work.
...
3,624
Posted By jamie_123
Hi, Thank you for the response. I am a bit...
Hi,

Thank you for the response. I am a bit confused on the intended usage. Does file2 mean another file which stores the unsorted entries? If I run it on the base file, the entries are not sorted...
3,624
Posted By jamie_123
Hi, I can print every third line and sort...
Hi,

I can print every third line and sort that very easily, using

awk 'NR%3==1' | sort -n

But I am not sure how to track the other two lines and add them to this sorted list..I am trying...
3,624
Posted By jamie_123
Sorting in groups
Hi,

I am looking at a slightly different sorting problem and I am not sure how to do it in bash.

I have the following input:


0 ...
1,879
Posted By jamie_123
Works like a treat @RudiC. Thanks!
Works like a treat @RudiC. Thanks!
1,879
Posted By jamie_123
Finding difference between two columns of unequal length
Hi,

I have two files which look like this


cat waitstate.txt
18.2
82.1



cat gostate.txt
5.6
5.8
6.1
6.3
6.6
6.9
7.2
7.5
1,451
Posted By jamie_123
Thanks! Confusion between bash variable and...
Thanks! Confusion between bash variable and awk..the surprising thing is that the same script works okay in cygwin..
1,451
Posted By jamie_123
Weird awk problem
Hi,

I have a simple awk script:

BEGIN{}
{
$a=$2-$1;
print $a
}
END{if(NR==0){
print "0"
}
}


to which I provide the following input

2.9 14
22.2 27
937
Posted By jamie_123
Weird difference in script execution
Hi,

So I have a very simple script which loops over 5 times and prints the iterator value.


#!/bin/sh
START=1
END=5
for i in $(eval echo "{$START..$END}")
do
echo "$i"
done

...
13,696
Posted By jamie_123
Thanks for the response. I solved this issue...
Thanks for the response. I solved this issue using my own script. It can be found here https://www.unix.com/shell-programming-and-scripting/248167-generate-points-cdf.html
Showing results 1 to 25 of 169

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