10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that replaces one string with the other in all files under the specified directory.
# **************** Change Variables Here ************
#... (1 Reply)
Discussion started by: mohtashims
2. Shell Programming and Scripting
I am using sed command to extract data from my log file for a certain time interval. From and To "time" are my input arguments.
Now if i use the sed command on command line. I get the desired results and If i use it in script.It fails.
sed command as command line:
sed -n '/04-Mar-2015... (6 Replies)
Discussion started by: oberoi1403
3. Shell Programming and Scripting
I have a file that contains lines like this:
I want to remove the string :
and so I tried to use SED. i tried to assign it to a variable and use it:
... (3 Replies)
Discussion started by: vskr72
4. Shell Programming and Scripting
I am trying to use a variable within the sed command but I am not able to get the output.
When I am using the following command (without variable) its working fine:
sed -n '/2011\/12\/10 18:11:11./,$p' < Log.txt > Delta_Log.txt
But when I am putting the value 2011\/12\/10... (4 Replies)
Discussion started by: acoomer
5. Shell Programming and Scripting
I ran one the script in debug mode in linux and have a problem
Now i need to remove $ from this '$prmAttunityUser=ais' so i had added a sed command like this sed 's/$//g' but its not working could you all please help me with an alternate command
I want the output... (3 Replies)
Discussion started by: vee_789
6. Shell Programming and Scripting
I need to search for a keyword UTF-16 in a list of files if that keyword is found then i need to convert the file to UTF-8 format using iconv command.
After this i should substitute the UTF-16 keyword inside the file to UTF-8.
Please suggest how to do this in shell scripting. (11 Replies)
Discussion started by: Shruthi8818
7. UNIX for Dummies Questions & Answers
I want to remove the / found when executing the date command. When I use: date +%D | sed 's/\///'
I get: 1105/09
I tried: date +%D | sed 's/\*$///'
I need to remove all / from the date command, but it does not seem to work (5 Replies)
Discussion started by: mojoman
8. Shell Programming and Scripting
I have come across a typical problem:
I need to use sed command to replace an apostrophe but it is saying no match found in the error
sed -e 's/`/'/g' ...but it is not working. Can you please tell me how to use this apostrophe in this sed command please. Thanks.
Rubin (8 Replies)
Discussion started by: RubinPat
9. UNIX Desktop Questions & Answers
I have to replace the character AL2 with AL16 which I have in one of my text file .
I used the sed command like this
sed 's/sed 's/AL2/AL16/g' test_carr.dat>test_carr1.dat
But it is not replacing this value to the output file.
The test_carr.dat file contains data like this
cat... (1 Reply)
Discussion started by: kavithakuttyk
10. Shell Programming and Scripting
I am trying to replace a word :: complete to Failed .
Sed command which i am using is given below ::
sed s/work: complete/Failed/g temp1.txt > temp2.txt (Sed command is grabled if i use the above .. because of space which is there between work: and complete. I... (6 Replies)
Discussion started by: raghav1982