All Questions

Tagged with
Filter by
Sorted by
Tagged with
3
votes
1answer
318 views

Bash string range and replace

To print part of the string, replace , with . I use command: echo "${q:16:6}" | sed 's/,/./' Is it possible to use something like: echo "${q:16:6/,/.}" because it does not work?
0
votes
2answers
210 views

sed with variables containing /

i have a text file containing some content like that, some content replace content other content and i have some variables, looking like this: PATH="/path/to/scriptdir" PARAMETERS="para1 ...
0
votes
1answer
106 views

Replace a value in URL

I'm new to Linux world and need some help. I have two files : A token.txt file with a string something like this: xd2111Vf124FfmrfJ22fag And a playlist.m3u file with the following: EXTM3U EXTINF:-1,...
0
votes
1answer
809 views

replace unix variable with value into sql file

I have sql file with multiple unix variable to spool the log into specific location and need to replace the unix variable with actual path before running sql file `cat a.sql accept v_answer prompt "...