Search Results

Search: Posts Made By: majormajormajor
1,815
Posted By majormajormajor
apologies if i'm being a nuisance, but i'm a...
apologies if i'm being a nuisance, but i'm a beginner and not really following.

do you mean find the files and pipe it to awk?
ie. this?

fine -name "*" | awk '{if ((lastword=="Bill") &&...
1,815
Posted By majormajormajor
beautiful, thankyou. two quick further...
beautiful, thankyou.

two quick further questions, if you don't mind :)

1 - how do i run awk recursively on a directory? i have 100s of files in a directory which i need to run this on.
2 - i...
1,815
Posted By majormajormajor
Returning two lines if they both match strings
Hi

I have a problem where I have a large amount of files that I need to scan and return a line and its following line, but only when the following line begins with a string.

String one -...
1,672
Posted By majormajormajor
brilliant. thankyou so much!
brilliant. thankyou so much!
1,672
Posted By majormajormajor
Inserting new line if two sequential lines begin with the same string
Hi

I have a file like this:

Peter North
Mary
Peter North
Peter Borough
Mary

I need there to put 'X' (or anything) on a new line between the two lines where 'Peter' begins the line. There...
2,954
Posted By majormajormajor
thanks guys! apologies again, but i'm new to...
thanks guys! apologies again, but i'm new to this.

steve.
2,954
Posted By majormajormajor
Basic bash -- pulling files from an FTP server
Hi guys. Very new to this so apologies if this is ridiculously obvious, but I am not sure why this isn't working. I want to pull a file off an FTP server. I currently do it through windows, which is...
Showing results 1 to 7 of 7

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