Search Results

Search: Posts Made By: jothi basu
3,239
Posted By Don Cragun
I don't understand! First, please use code...
I don't understand!

First, please use code tags around the file contents; not around the contents AND the descriptions of the contents.

Second, are you saying that your input files contain code...
2,555
Posted By Don Cragun
Jotne and elixir_sinari both seem to have missed...
Jotne and elixir_sinari both seem to have missed that jothi basu asked not only for a "1" to be added but also for "T" to be changed to "t". And since "Test" always appears at the start of lines to...
2,555
Posted By elixir_sinari
May be: sed '/^#/!s/Test/&1/g' file
May be:
sed '/^#/!s/Test/&1/g' file
2,555
Posted By Jotne
With awk awk '!/^#/ {sub(/Test/,"Test1")}1'...
With awk
awk '!/^#/ {sub(/Test/,"Test1")}1' infile
2,889
Posted By ahamed101
Please use code tags Try this if the input...
Please use code tags

Try this if the input file pattern is what you have mentioned
sed 's/\([A-Z]\)_\([A-Z]\)/\1.\2/g' infile

--ahamed
2,301
Posted By balajesuri
Looking for something like this? #!/bin/bash ...
Looking for something like this?
#!/bin/bash
array=( cat dog horse )

a="horse"

for x in ${array[@]}
do
if [ "$a" == "$x" ]
then
echo "$a and $x match"
else
...
Showing results 1 to 6 of 6

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