No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Can anyone help me with this, please: This code works as intended: [CODE]eval "$(date "+yr=%Y mh=%m dy=%d hr=%H mt=%M sd=%S")" echo "year=$yr ; month=$mh ; day=$dy ; hour=$hr ; minute=$mt ; second=$sd"[/CODE] It gives output [CODE]year=2012 ; month=02 ; day=09 ; hour=14 ; minute=30 ; second=17[/CODE] on stdout. This code … |
|
I'm trying to write a bash script that converts html file into latex file by processing each line with sed. I'm stuck with following issue: I need to replace [ICODE]<a name="[I]something[/I]">[/ICODE] with [ICODE]\index{[I]something_else[/I]}[/ICODE]. I have an associative array with key-value pairs like this: [ICODE]"[I]something[/I]" => "[I]something_else[/I]"[/ICODE]. However, there are 2 … |