![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
queston about sed
what wrong with it ? I cannot get the output, can anyone help , many thanks.
date.txt xxx-CCC #text..... #cat run S01= sed -n '/$*-`echo AAA-BBB-CCC | cut -d- -f3`/p' data.txt echo $* echo AAA-BBB-CCC | cut -d- -f3 echo $S01 $ run xxx xxx CCC $ |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|