Search Results

Search: Posts Made By: duonut
6,456
Posted By duonut
Hi That worked perfectly. I am now using...
Hi

That worked perfectly. I am now using another module with pam to allow for dual authentication.

Thanks
6,456
Posted By duonut
One account with multiple passwords
Hi
I am currently using saslauthd to authenticate users onto an imap server (cyrus).

I need to have it so that a user can logon to an account with multiple passwords (even just two would work)....
10,035
Posted By duonut
Sed delete blank lines upto first pattern match
Hi
Im trying to do the following in sed. I want to delete any blank line at the start of a file until it matches a pattern and then stops. for example:

Input



output:



I have got it...
4,494
Posted By duonut
Both directories are on the same system. The left...
Both directories are on the same system. The left directory is a cifs mount from another server and the right is just a local drive.
4,494
Posted By duonut
unfortunately I am unable to delete files on the...
unfortunately I am unable to delete files on the left.

When the files are copied over they are processed and sent into a database. If the files on the right are not deleted then they will just get...
4,494
Posted By duonut
rsync copy files once
Hi
This is my situation

I have files on the left which I want to copy to the right. Once the files are copied to the right, they are processed and then deleted. The next time rsync runs I dont...
1,992
Posted By duonut
Hi that didn't work, it just goes in a...
Hi


that didn't work, it just goes in a loop 4 times removing all empty lines from the file.

I guess an example input -> output would be:

Input

1

2

3

4

5

6
1,992
Posted By duonut
Sed delete certain number of empty lines
Hi

What I'm trying to do is delete every blank line upto a certain number, so for instance I only want to delete the first 4 empty lines within a file, I know how to delete every line with:

sed...
4,026
Posted By duonut
thank you! I havent really touch much of perl,...
thank you!
I havent really touch much of perl, what is it that it is doing?
4,026
Posted By duonut
Fix timestamp with Sed or Awk
Hi
I am dealing with the following string:

Date: Thur, 13 March 2011 01:01:10 +0000

I asked for help in another topic that converted a similar string:

Date: Thur, 13 March 2011 9:50 AM
...
18,525
Posted By duonut
ok i got it working: I append the ouput of...
ok i got it working:

I append the ouput of awk to a tmp file then using a tiny python script that takes stdin and appends the string to the top of the file and not the bottom.

Again thanks for...
10,746
Posted By duonut
Grep Search for both First and last word
Hi
Pretty sure this is very simple hence im banging my head o the wall as to why i cant get this to work:

Im greping against many files where there will be the following string:

Date: Thu, Aug...
18,525
Posted By duonut
ok thanks, ill have to find another way as I need...
ok thanks, ill have to find another way as I need the rewritten date put back into the original file.
18,525
Posted By duonut
again thank you ahmed101, im wondering though how...
again thank you ahmed101, im wondering though how would it be possible to write it back to the original file as i thought awk cant do that?.
18,525
Posted By duonut
thanks, that is much simpler and works perfectly....
thanks, that is much simpler and works perfectly. thank you

Ive ben looking around for something else to deal with the same line of data.

Sometimes the data will be formatted like so:

Date:...
18,525
Posted By duonut
Ok yeh i just realised that this wont work, I was...
Ok yeh i just realised that this wont work, I was testing with files that only had Date: blah blah in them but normally they will have other data as well which will stil get caught up. Thanks for the...
18,525
Posted By duonut
sed replace string in file with stdin
Hi
Im trying to do the following:



grep -H Date: out/* | sed 's/':'/ /' | awk '$4 ~ /^[Aa-Zz]/ {print $1}' | while read VARIABLE; do
awk '{print $1,$3,$2}' $VARIABLE | sed (take stdin and...
Showing results 1 to 17 of 17

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