10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name email@example.com need to replace with firstname.lastname@example.org. I just understood about the find the command to search .sh files. Please help me on this.
find / -name... (3 Replies)
Discussion started by: bhas85
2. Shell Programming and Scripting
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
Discussion started by: Paras Pandey
3. UNIX for Beginners Questions & Answers
I want to find all the "," in my text file and then replace the commas to a tab. I found a script online but I don't know how to modify the script for my case. Any one can help? Thank you.
@echo off &setlocal
set... (2 Replies)
Discussion started by: forevertl
4. Shell Programming and Scripting
I have a file called abc.sed with the following commands;
I also have a second file called abc.dat and would like to substitute all occurrences of "1 with one", "2 with two", etc and create a new file called abc_new.dat
sed -f abc.sed abc.dat >... (10 Replies)
Discussion started by: pchang
5. Shell Programming and Scripting
I have a file example.txt as follows :SomeTextGoesHere
$$TODAY_DT=20140818I need to automatically update the date (20140818) in the above file, by getting the new date as argument, using a shell script.
(It would even be better if I could pass... (5 Replies)
Discussion started by: SriRamKrish
6. Shell Programming and Scripting
I have a file1 with different with multiple fields and records
File2 has 2 fields.
I want to find and replace strings in file1 based on file2 values (I Want an exact match i.e. for example: when searching for DT:3, Substr of DT:34 should not be matched)
DT:34 bar_frr... (8 Replies)
Discussion started by: aydj
7. Shell Programming and Scripting
I need your help, I have file like this:
67589 27 (2 Replies)
Discussion started by: attila
8. Shell Programming and Scripting
Can someone tell me how I can do this?
Say file1.txt contains:
today is monday
the 22 of
and file2.txt contains:
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
9. Shell Programming and Scripting
I am new to this forum and new to sed/awk programming too !!
I need to find particular string in file1(text file) and replace it with a value from another text file(file2) the file2 has only one line and the value to be replaced with is in the second column.
(assert (=... (21 Replies)
Discussion started by: paramad
10. Shell Programming and Scripting
/home/$USER/.config replace it with "" (empty)
Is this possible?
I think you should play a bit with sharps ## and sed:b: (2 Replies)
Discussion started by: hakermania