Search Results

Search: Posts Made By: iCONAN
1,495
Posted By iCONAN
sed or other?
Here is the problem. I have a text file of a log and some of the output looks like this

some text
======
description

and some looks like this

some text
======
blank line

Is it...
1,966
Posted By iCONAN
Sorry about it not being specific enough but you...
Sorry about it not being specific enough but you hit it right on the head.

The only part I could not figure out was the $d. So I gather that the $ is the partt that mean from here to the end of...
1,966
Posted By iCONAN
sed or ????
I have a big text file that has specific paragraph titles always in the same order.

If I wanted to delete all text after a certain title would I want to use sed or another command? The paragraph...
2,037
Posted By iCONAN
lines from file to variable
I have a text file that contains a word on each line. I want to be able to use each word as a variable to be put into a URL. I have been trying to put together a for loop but I am not having much...
4,855
Posted By iCONAN
Thanks zazzybob that works fine.
Thanks zazzybob that works fine.
4,855
Posted By iCONAN
If the file does not contain the search pattern I...
If the file does not contain the search pattern I would like to delete the file.
4,855
Posted By iCONAN
Thanks for the repies so quickly, but a couple of...
Thanks for the repies so quickly, but a couple of things happen.

When I execute this

find /path/to/files -empty -exec rm -f {}\;

and I put in the /path/to/file I get an error of -exec: no...
4,855
Posted By iCONAN
Finding out if there is text in a file.
I have a script that when run creates 4 other text files. Sometimes a couple of these text files are empty. So what I am trying to do is find out if there is text in the file and if not delete the...
Showing results 1 to 8 of 8

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