Search Results

Search: Posts Made By: ionral
5,895
Posted By ygemici
#!/bin/bash while getopts p:i:d: opt do ...
#!/bin/bash
while getopts p:i:d: opt
do
case $opt in
p) protocol="$OPTARG";;
i) address="$OPTARG";;
d) directory="$OPTARG";;
?) bad=1;;...
1,259
Posted By tene
Try this: 's/5 2 \* \* 2 root backupdat/5 5...
Try this:

's/5 2 \* \* 2 root backupdat/5 5 * * 3 root backupdat/' /etc/crontab
1,259
Posted By tene
This command will give you escaped * from your...
This command will give you escaped * from your grep command. Then use it in the final sed command.
grep <pattern> <file> | sed 's/*/\\*/g'
843
Posted By michaelrozar17
It's not tested...but could give a try.. sed...
It's not tested...but could give a try..
sed 's/stop\)/&\nvgchange -an/' /etc/init.d/drbd > outfile
Showing results 1 to 4 of 4

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