sed
Use sed to convert roman numerals to arabic numerals
I have text file format like this SKI SKII SKIII SKIV SKV SKVI SKVII I want to convert it with sed command into numerical. Can you help me out?[详细]
2023-03-28 02:23 分类:问答Bash script using sed with variables in a for loop?
I\'m trying to write a bash script that takes a few variables and then does a find/replace with a given file search using grep to get the list of files that have the string. I think the issue I\'m hav[详细]
2023-03-28 02:18 分类:问答Parse a text file for certain string with prefix "Product Name:"
Hey guys I\'ve got a text file that a script creates (specifically dmidecode > dmidecode.txt) and I want to be able to grab the contents of \"Product Name:\" so in this case \"HP t5740e Thin Client[详细]
2023-03-28 01:05 分类:问答Awk combining multiple lines conditionally
I want to combine values from multiple lines of varying length into one line if they match IDs. Input example is:[详细]
2023-03-28 01:04 分类:问答regex to catch commented lines of a conf file
In order to find this line pm.max_children = 50 inside a conf file and change it to pm.max_children = 5, I am using this:[详细]
2023-03-27 22:04 分类:问答Shell variables in sed script [duplicate]
This question already has answers here: sed substitution with Bash variables (6 answers) Closed last month.[详细]
2023-03-27 14:16 分类:问答SSH - Recursive find and replace
I\'m rather new to bash and a few others, and I have looked online and found many solutions to somewhat do what I need, but I am looking for the optimal way.[详细]
2023-03-27 14:00 分类:问答Replace text in file with user input containing space, using sed
My script: #!/bin/sh cp -f host.tpl host.conf mkdir -p /var/www/$1 server_replace=\"s,{server_name},$1,g\"[详细]
2023-03-27 12:24 分类:问答Using sed/awk and regex to process logs
I have 1000s of log files generated by a very verbose PHP script. The general structure is as follows[详细]
2023-03-27 03:11 分类:问答sed - how to delete more that one space in a row?
I have a file with : STRING.STRING2.STRING3= VALUE1 bla bla text bla bla And i want to obtain something like this:[详细]
2023-03-27 02:12 分类:问答