Search Results

Search: Posts Made By: rade777
2,740
Posted By rade777
This got fixed.. actually grep was introducing a...
This got fixed.. actually grep was introducing a ^M charater in the variable.
Redirected the grep output in the file. did a dos2unix on the file.. took output from file in a variable and used in...
2,740
Posted By rade777
found contro characters at the end of each line...
found contro characters at the end of each line in the file.. $
unable to remove it. do i have to rectreate the file?

---------- Post updated at 03:17 PM ---------- Previous update was at 01:27...
2,740
Posted By rade777
yes.. i have checked several times. echo $var...
yes.. i have checked several times. echo $var gives me xyz as output.
As i mentioned I am populating $var through a grep command
var=$(grep "Group" F5 | sed 's/Group Name[...
2,740
Posted By rade777
doesnt works.. isnt appending anything to the...
doesnt works.. isnt appending anything to the file :(

---------- Post updated at 12:14 PM ---------- Previous update was at 12:13 PM ----------




nothing got appended
2,740
Posted By rade777
Adding variable value in the begining of all lines present in a file.
I am getting the varible value from a grep command as:
var=$(grep "Group" File1.txt | sed 's/Group Name[ ]*//g;s/,//g;s/://g;s/-//g')

which leaves me the value of $var=xyz.
now i want to append...
Showing results 1 to 5 of 5

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