sed
Using sed command for range of numbers
I have a file with city andnumbers. It\'s a csv file New York , 23456 chicago, 123,456,789,889981(2-6) phoenix123,76(0-3)[详细]
2023-04-01 09:16 分类:问答using sed to get only line number of "grep -in"
Which regexp should I use to only get line number from grep -in output? The usual output is something like this:[详细]
2023-04-01 04:59 分类:问答How to remove space between distinct chars in a string using sed?
I want开发者_StackOverflow社区 to remove the space between two distinct chars separated by space.[详细]
2023-04-01 00:04 分类:问答Trying to pass bash variable with spaces
Can anyone help with this query. Currently attempting to pass a variable into xml using sed. This works fine with just the text, however its not picking up the variable within bash such as $1, $2 etc[详细]
2023-03-31 20:01 分类:问答Why some servers can't run SED commands?
Recently I\'ve been trying to fix a slew of viruses on my server which I suspect is due to the Blackhole toolkit. It appends a js-script to the end of index.php and .html files which looks like this..[详细]
2023-03-31 18:10 分类:问答Split file according to patterns in two consecutive lines
I have files with the following format: ATOM3736CBTHR A 486-6.552 153.891-7.9221.00115.15C ATOM3737OG1 THR A 486-6.756 154.842-6.8661.001开发者_运维百科14.94O[详细]
2023-03-31 17:15 分类:问答How can I manipulate file names using bash and sed?
I am trying to loop through all the files in a directory. I want to do some stuff on each file (convert it to xml, not included in example), then write the file to a new directory structure.[详细]
2023-03-31 13:35 分类:问答Match against word in single quotes
This is a sed and RegEx beginner question, but I was not able to answer it myself through googling. Szenario[详细]
2023-03-31 13:18 分类:问答Sed on AIX does not recognize -i flag
Does sed -i work on AIX? 开发者_StackOverflow中文版 If not, how can I edit a file \"in place\" on AIX?The -i option is a GNU (non-standard) extension to the sed command.It was not part of the classic[详细]
2023-03-31 07:26 分类:问答Replacing HTML tag content using sed
I\'m trying to replace the content of some HTML tags in an HTML page using sed in a bash script. For some reason I\'m not getting the proper result as it\'s not replacing anything. It has to be someth[详细]
2023-03-30 10:51 分类:问答