Search Results

Search: Posts Made By: Wolja
21,581
Posted By Wolja
If you are looking for things today it won't be...
If you are looking for things today it won't be as easy as ps helpfully, Not, doesn't add the Month and Date to the output for processes started today .

If for earleir than today than ps -ef |...
58,173
Posted By Wolja
That's a tad difficult if there are more than...
That's a tad difficult if there are more than five fields.

Not sure what your awk command is but awk '{OFS=","};{print $0 (or print $1,$3,$5 etc)}' myfile > myfile.csv will output the result...
9,551
Posted By Wolja
God I wish I'd read this three days ago :) ...
God I wish I'd read this three days ago :)

Ta very useful.
2,877
Posted By Wolja
That wasn't quite the answer but got me thinking...
That wasn't quite the answer but got me thinking thanks :)

for some reason , not sure why, the backticks in the variable creation were interfering with the sed. Removing the backticks and suddenly...
2,877
Posted By Wolja
I'm going madder than I was this morning :)
I'm creating a lot of test data for some performance testing coming up. The vendor product I used to create the file had a slight bug in it and got some times wrong so I decided to use sed to fix it....
8,990
Posted By Wolja
I'm not entirely sure I understand the question...
I'm not entirely sure I understand the question but one way, fairly clunky but hey that's me all over :)

If the input is all single column without separators;
start=grep -ni '^test' | awk...
3,275
Posted By Wolja
I use a combination of top , ptree and sar to...
I use a combination of top , ptree and sar to look at CPU hogs.

Top provides the pids of CPU intensive processes which works well with ptree to work out what they are doing.

Sar, google for...
3,910
Posted By Wolja
I'm sure a google for regexp and egrep would...
I'm sure a google for regexp and egrep would answer the question

But given Unix manuals tend to assume you know the answer already :-P

you need to separate the two parts of the egrep by the...
7,153
Posted By Wolja
sed -e 's/ //g' filename I like the awk...
sed -e 's/ //g' filename

I like the awk response. ta.
1,683
Posted By Wolja
Assuming I understand this you want something...
Assuming I understand this you want something like
date data

data=something

echo "`date +%d%m%Y`{Separator}$data" >> file

cat file
16052008{Separator}something
4,569
Posted By Wolja
You've forgotten the ' around the command and it...
You've forgotten the ' around the command and it should be -e not -n, which treats things as numbers.

This works as sed does line by line so by chaining the commands it acts on each line in order....
7,351
Posted By Wolja
If I understand your question correctly Echo is...
If I understand your question correctly Echo is processing one line at a time so you are sorting one line then outputting it to a file which really has no effect with the sort.

Create the file...
10,289
Posted By Wolja
I'm not quite sure what you're trying to do but...
I'm not quite sure what you're trying to do but your while loop is in the wrong place.

Code:
keepLooping=1
while (( keepLooping == 1 ))
do
ssh user@domain
echo a
if [ ?? ] ; then
...
50,439
Posted By Wolja
Ah my bad I wasn't clear enough :) with the...
Ah my bad I wasn't clear enough :)

with the -f limiting it to file names I get with the find , find $dir -type f -exec du -k {} \; 2>>/dev/null | sort -rn | head -${hd}

the following

480056...
50,439
Posted By Wolja
I'm not sure if I should start a new thread so if...
I'm not sure if I should start a new thread so if I'm posting inappropriately apologies.

Is there a way to get du -k * | sort -rn | head -11, which I prefer for some reason to the find above to...
Showing results 1 to 15 of 15

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