Search Results

Search: Posts Made By: DeuceLee
5,394
Posted By DeuceLee
That is sick stuff vgersh99...unfortunately i...
That is sick stuff vgersh99...unfortunately i forgot to tell you that my input.txt is a lot longer than 3 lines, say it's 6 lines, but I still don't want to overwrite the HHH.

$ cat input.txt
RRR...
5,394
Posted By DeuceLee
search and replace, when found, delete multiple lines, add new set of lines?
hey guys,

I tried searching but most 'search and replace' questions are related to one liners.

Say I have a file to be replaced that has the following:

$ cat testing.txt
TESTING
AAA
BBB...
3,611
Posted By DeuceLee
Hi rdcwayx, Appreciate your code. Much...
Hi rdcwayx,

Appreciate your code. Much simplier then mine.

I should have been more clear. What you gave me did exactly as the code i put in my post with the exception of the second "print...
3,611
Posted By DeuceLee
hey thanks alot Franklin...major help...thanks,...
hey thanks alot Franklin...major help...thanks, I'm almost there...

I modified the following from you...


awk '
/version/ {
print $0
getline
print $0
if ($0 != "<letters>")
...
3,611
Posted By DeuceLee
Read and copy xml line by line and preserve tab?
I'm trying to read an xml file and copy it line by line to another file and want to preserve the tabs.

What i'm trying to do is if I get to a certain line in the xml, I'm going to check to see if...
4,747
Posted By DeuceLee
crap...i thought i had it but i forgot to add a...
crap...i thought i had it but i forgot to add a small detail...please see if you guys can help me with this...

this relates to cfa's statement:

eval "grep 'something' \"\$${i}FILE\" >...
4,747
Posted By DeuceLee
thank you ghostdog, bakunin and...
thank you ghostdog, bakunin and cfajohnson...between the three of you, i've got it taken cared of...

i'm going to take ghostdog and bakunin's suggestion of referenceing the file directly...i...
4,747
Posted By DeuceLee
for loop, calling and editing multiple files inside
hey guys,

I'm trying to call and modify multiple files inside the for loop, i can't get it to work...

------------------------

AFILE=/dir/a_file.txt
BFILE=/dir/b_file.txt...
3,131
Posted By DeuceLee
it's kind of funny cus i actually spent about 30...
it's kind of funny cus i actually spent about 30 mins on google before i came back on here...

but i think i got something that will improvise...i'll post something back if it works as expected or...
3,131
Posted By DeuceLee
it's kind of funny cus i actually spent about 30...
it's kind of funny cus i actually spent about 30 mins on google before i came back on here...

but i think i got something that will improvise...i'll post something back if it works as expected or...
3,956
Posted By DeuceLee
Which Linux to get for home computer?
the most popular ones on distrowatch seems to be PCLinuxOS, Ubuntu, openSUSE and Fedora.

any tips, suggestions you can give this super newb about choosing something?

i'd like to do a dual...
3,131
Posted By DeuceLee
parse multiple lines? should be a easy answer...
inputfile:

A B C D
E F G H
1 2 3 4

-----------

I want to read these and put them into a variable:

file=../inputfile
col2line1=`cat $file | awk '{print $2}'`

how do i extract row 2's...
8,459
Posted By DeuceLee
hey thanks a bunch guys!!! jim, you hit the...
hey thanks a bunch guys!!!

jim, you hit the nail in the face...

porter, it didn't work but has taught me to be more efficient...thanks!
8,459
Posted By DeuceLee
newb help! file name with spaces breaking up when trying to retrieve it
for file in `ls *.txt`
do
sed '/s/old/new/g' $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
done

the txt files names look like "text file one.txt", "text file two.txt"

but when I run...
Showing results 1 to 14 of 14

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