Help with batch file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can't you use grep for that. find the line then somehow delete it once 
found. now that I think about it I'm not actually sure how you'd do that Or 
replace that found line with a blank line..
----- Original Message ----- 
From: "Chris Norman" <chris.norman4@xxxxxxxxxxxx>
To: "Speakup List" <speakup at braille.uwo.ca>
Sent: Tuesday, August 28, 2007 10:47 AM
Subject: Help with batch file.


> Hi all,
> I am writing a bash script. Part of the script involves deleting one
> line of a file, which will be located anywhere in the file.
>
> The line will follow the syntax:
>
> $1.$FILE
>
> How can I delete this from a file? I believe sed is the way forward, but
> can't find anything in the manual.
>
> Cheers.
>
>
> -- 
>
>
> Chris Norman.
>
> <!-- chris.norman4 at ntlworld.com -->
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup 





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux