| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
>> This will ensure that the first line is not modified... > the script shows no changes in my test.
When you say no changes, means the input = output?
Can you post the inputs/outputs that you gave/got...
---In [email protected], <Thierry.Blanc@...> wrote :
On 12/12/15 21:45, sharma__r@... mailto:sharma__r@... [sed-users] wrote:
> This will ensure that the first line is not modified...
the script shows no changes in my test.
>
>
> #!/bin/sh -u
>
>
> c=3;
> d=\;;
>
>
> code="
> ${c}{
> s/.*/\L&/;
> s/\<[a-z]/\u&/g;
> }
> H;1h;\$!d;
> g;y/\\n/$d/;
> "
>
>
> flag=
> while IFS= read -r Line; do
>
> case $flag in '' ) printf '%s\n' "$Line"; flag=1; continue;; esac;
> set -f;
> IFS=$d; set X $Line; shift;
> printf '%s\n' "$@" | sed -e "$code";
> done < input.csv
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
> Posted by: sharma__r@... mailto:sharma__r@...
> ------------------------------------
>
[Non-text portions of this message have been removed]