Search Results

Search: Posts Made By: dirkaulo
3,333
Posted By dirkaulo
sed. Actually I am writing a shell script to...
sed. Actually I am writing a shell script to modify some existing shell script. But I am not able to use sed directly as the string I wanted to replace is too long. So, I want to use two files to be...
3,333
Posted By dirkaulo
Sed: replace content from file with the content from file
Hi,

I am having trouble while using 'sed' with reading files. Please help. I have 3 files. File A, file B and file C. I want to find content of file B in file A and replace it by content in file...
10,478
Posted By dirkaulo
Create user if UID not exist; else, exit the script
Hi, I want to write a script to check whether an user ID is used in my server and then create that user.

If the user ID is not used, I will echo something like "OK, continue" and then continue to...
5,478
Posted By dirkaulo
Delete all files but exclude some files
Hi, I have a software install in a directory, says "/opt/tibco".

If I want to remove all the things in this directory and its sub-directories, but exclude all log files (*.log in different...
1,592
Posted By dirkaulo
Thanks! I have tried it. It works, but it only...
Thanks! I have tried it. It works, but it only print out the result.
If I want to change the original text file (sample.txt) as well, how should I change the command?
1,592
Posted By dirkaulo
Linux: replace pattern with pattern
Hi, I am a rookie of Linux.
I have a problem on how can I replace a certain pattern in Linux with nothing. Can anyone help me?:(

sample.txt:
<binding>App189
ABC SampleMachine1 ABC
XXX
YYY...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy