Search Results

Search: Posts Made By: ccox85
3,206
Posted By ccox85
Thank you!
Wow, that worked like a charm and was less elaborate than my scheme. It'll take me a bit to understand what you did, I don't know perl at all, but it certainly got the job done. Thank you!

Chris
3,206
Posted By ccox85
giving up for now...
Here is what I have managed to come up with:


#!/bin/sh
cp ch25.txt ch25.fn.tex
n=`grep -c '^\[' ch25_footnotes.txt`
echo $n

#for i in {1..n}; ### This syntax was not working, for some...
3,206
Posted By ccox85
Almost
Alright, so this was an uninteresting problem, I guess... no hits at all except for my own! But, I did solve PART of the problem, so for what its worth I am going to explain that... I am sure I am...
3,206
Posted By ccox85
PS, I notice that I forgot a semicolon after the...
PS, I notice that I forgot a semicolon after the for argument... I added that and it still does not run. Thank you!
PPS, I also realized that I should probably have back-ticked the grep and sed...
3,206
Posted By ccox85
replace string in file.1 with line from file.2
Hello all, the title makes this sound simple, and maybe it should be.

This is by code:

#!/bin/sh
cp ch25.txt ch25.fn.tex
n=`grep -c '^\[' ch25_footnotes.txt`

for i in {1..$n}
do
...
1,932
Posted By ccox85
I'll play with this, thank you! I guess the part...
I'll play with this, thank you! I guess the part of the command that you taught me was the &
I did not know of that function! I'll look it up in the manual... thanks!
1,932
Posted By ccox85
search for any number, and retain them in replacement
Hello!

Here is what I am trying to do: I am taking a class at school that is using a lot of literature that is in the public domain, and available for free on the web. Rather than read them...
1,842
Posted By ccox85
wow... sorry
Alright, I realized my problem... this can be deleted, I feel silly.

lol

Chris
1,842
Posted By ccox85
Unwanted field separation in awk
Hi everyone,

My problem is strange, I cannot think of why this is happening.

I have a set of data that looks like this:



Although it does not look it, the fields are tab delimited. I...
11,255
Posted By ccox85
I understand better now, thanks. Unfortunately,...
I understand better now, thanks. Unfortunately, I am not doing homework. Just working in a lab where windows is a swear word and I am being motivated to learn shell scripts.
11,255
Posted By ccox85
Problem Solved
Thank you for your help, mods! I just wanted to let you know that you can close this thread if you like, because I came across a solution. I have never used sed before, but it has the option to...
9,356
Posted By ccox85
awk escape character
The awk escape character is a backslash: \
Its also the escape character in vi if you were curious ;)
11,255
Posted By ccox85
hmmm... I don't how to ask the question I guess. ...
hmmm... I don't how to ask the question I guess. And I did not understand a lot of what is going on in your suggestion, vgersh99. I feel like I am making this more complicated than I need to. I...
11,255
Posted By ccox85
While we are at it, I need to remove a group of...
While we are at it, I need to remove a group of subjects from ec 1. I have their subject numbers listed, but I don't know how to use this list to expedite deleting them from the master list or 1.lst.
11,255
Posted By ccox85
clarification
Alright, this is a sample from all.inq:


The file is enormous so this is only a small chunk of block 6 from subject# 570613667. If you look in my first post, that simplified version should be...
11,255
Posted By ccox85
I dont understand how this would work. It looks...
I dont understand how this would work. It looks to me like list would be the file name of my list file, and name would just read in each record in the file (??? I dont know if that is the right...
11,255
Posted By ccox85
I thought of a way to simplify the question and...
I thought of a way to simplify the question and make it general.

grep syntax is:

Can you have grep read the pattern from a file, and go line by line through that file and just append all...
11,255
Posted By ccox85
read in variable data from another file - grep
Hello! I think this should be an easy solution. I have a large file with many fields of data. The first field has a unique identifier (a subject number) for every record for a chunk of data. ...
2,639
Posted By ccox85
Thank you everyone!
With all this help, I completed the project today! I definitely need to get vi up and running on my mac. Doesn't feel very professional working in textedit :o
2,639
Posted By ccox85
Wow, that was easy enough. Thank you so much!...
Wow, that was easy enough. Thank you so much! And here I was thinking that the mac formatting was the same as Unix... good life lesson.

And just to save myself the frustration of trying and...
2,639
Posted By ccox85
awk misreading txt file
Good morning,

I am having a problem that I have never had before using awk. I have a txt file that obviously has clear columns and records. When I open the file in textedit, or any other program,...
6,654
Posted By ccox85
Making a progress gauge in a bash script
Hello once again:
One thing that seems to be a nice feature is a progress gauge... so I can see how long an operation will take for a task to complete if it is requiring a lot of processing or the...
1,775
Posted By ccox85
Trouble with printing to other folders w/ awk
Again, I am in need of some advice.

Earlier I was shown how to have awk create folders for me. That was so cool and helpful, but now I am exploring the posibilities of combining operations with...
34,732
Posted By ccox85
Thanks, but...
thanks so much guys!
34,732
Posted By ccox85
Use awk to create new folder in current directory
Alright, I am sure this is a laughable question, but I don't know so I am going to ask anyway.

I have a little script I am writing to take information from one source, recode it in a certain way,...
Showing results 1 to 25 of 27

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