Search Results

Search: Posts Made By: borgeh
5,289
Posted By borgeh
Thanks! I think this is close to a way to do...
Thanks!
I think this is close to a way to do it. How can x5 help me to find correct place to cut?
Something like this might work:

- Filter out heading or trailing newlines to assure the count...
5,289
Posted By borgeh
It's not different, but since I received no...
It's not different, but since I received no answer on that query I decided to write the problem in a different way since maybe it was difficult to understand what I meant. I have a feeling though...
5,289
Posted By borgeh
Split file at location of textpattern
I have a file that I want to split in 2 (with Bourne shell sh) preferably. The file is a configuration file for several elements and hence consists of a repeated configuration pattern like this:
...
13,974
Posted By borgeh
This should be straightforward with my...
This should be straightforward with my sed-suggestion above.
13,974
Posted By borgeh
I am not sure I totally understand what you want...
I am not sure I totally understand what you want to replace and how to find it but if you want to replace the whole line you can do:

sed ...
2,048
Posted By borgeh
Any control characters that can have been added...
Any control characters that can have been added or some pagebreaks added/removed during copy paste process? Seems like it doesn't find the final ";;" in the case statement.
10,449
Posted By borgeh
As I said I had the same problem and solved it...
As I said I had the same problem and solved it using full path on every file-reference. The crontab-job will start but it will not perform all it should. Search here and you will see that many have...
5,418
Posted By borgeh
Suggest that you copy and paste content from the...
Suggest that you copy and paste content from the word document here (unless it's too big) or attach it as a pure textfile. People might hesitate to open a word-file they don't know anything about.
10,449
Posted By borgeh
I had problems running crontabs until I added...
I had problems running crontabs until I added absolute paths to my file references used in the script. Search for "crontab" or similar entries in previous postings on this forum.
3,549
Posted By borgeh
Splitting file in 2 at specific place based on textpattern
I have a file that I want to split in 2 (with Bourne shell sh) preferably. The file consists of groups of lines separated by newline. The file can vary in length, so I need to check number of groups...
66,640
Posted By borgeh
Thanks
Thanks....basename was what I was looking for. Frustrating when you know you know but can't get it out.
66,640
Posted By borgeh
Remove path from filename
In a foreach loop I end up with $file containing the filename INCLUDING the whole path. I want this reduced to just the filename, but I can't seem to remember how I did it some years back. I am sure...
Showing results 1 to 12 of 12

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