sed command

A Shell Script To Update Spamhaus Lasso Spam Database for PF Firewall.

{ 3 comments }

Simple UNIX / Linux Sed Program to remove all comments from c program.

{ 1 comment }

A UNIX / Linux sed based shell script to remove all blank spaces from a text file.

{ 5 comments }

Write the shell / sed program which remove all the comments from a simple C program stored in your current directory. You can assume that the c source code contains only syntactically correct comments: + start with // and end with a newline + starting with /* and ending */ (can be multiline) + nesting […]

{ 5 comments }

This script uses sed command to find out all digits or upper characters. -z string (conditional expression) will return true if the length of string is zero. Script logic Read one character [1] Use sed command to determine input character is digit or not (sed -e ‘s/[A-Z]//g’)) [2] Attempt to match regex [0-9] i.e. all […]

{ 6 comments }