Basically, I am creating an XML file by taking the values from a column of a table. I am starting an AWK script from a shell script (ksh if it matters) like this:
The following code is working as expected. But I can not format the output. It will print something like this:
I got a file that has a line in the file like this: check=(\'78905905f5a4ed82160c327f3fd34cba\') I\'d like to be able to move this line to follow a line that looks like this:
I have pattern like belo开发者_JAVA百科w hi hello hallo greetings salutations no more hello for you I am trying to replace all newlines with tab using the following command
File1: helloworld foobar aword with开发者_如何学C a space I need to replace all white spaces which are two or more in length with a semi-colon(;).
I a开发者_StackOverflowm trying this option #!/bin/ksh echo $1 awk \'{FS=\"=\";print $2}\' $1 and on the command line
F开发者_开发问答ile1: hello(OPTION1)123456123456123456 world(OPTION1)123456123456123456 foo(OPTION1)123456123456123456
I have a file which has 50 rows. Each row is made up of three columns. The first two columns are the variables and this will be passed as parameters to return the 3rd column\'s value.
I have a command like echo \"abcd0001gfh.DAT\" | sed \'s/^[^0-9]*\\(....\\).*$/\\1/\' | awk \'{ print \"00\"$0 }\'
I have files with these kind of duplicate lines, where only the last field is different: OST,0202000070,01-AUG-09,002735,6,0,0202000068,4520688,-1,0,0,0,0,0,55