Search Results

Search: Posts Made By: thibodc
887
Posted By thibodc
thanks for the help
thanks for the help
887
Posted By thibodc
Grep help
I was wondering if anyone could help me with a grep. The following is the part of the input file I’d like to grep. What I’d like to do is grep header=” “ where inside the quotes there could be two or...
1,189
Posted By thibodc
TCSH scripts that use the same variable names
If I run two different TCSH scripts simultaneously that use identical variable names will this cause any problems?
3,506
Posted By thibodc
TCSH user input error checking
This was taken down recently because it appeared to be homework, but it isn't. It's for a script I am working on at work. Thanks for the help.

How do you check that user inputs (arguments 1 and...
2,284
Posted By thibodc
TCSH user input checks
I would like to check user input for arguments 1 and 2 for my Solaris TCSH script for the following:
1. That both user input arguments are numbers.
2. That they are both at least 5 digits.
...
997
Posted By thibodc
The program I am calling...I take its output and...
The program I am calling...I take its output and write it to a file, but the program writes if it was successful or not to the terminal window. I do not have access to manipulate the program...so I...
997
Posted By thibodc
Set variable to program message
I have a TCSH script that calls a program. This program generates a file and outputs a message to the terminal window. Is there a way to store the message it outputs to a variable...so I can use it...
864
Posted By thibodc
Thanks for the help. Let's say I have set my...
Thanks for the help. Let's say I have set my variable before I ran this line and its stored in a variable called name. Would this code work?

awk '$2 ~/^0:/ && match( $6, "^" v ) && $7 ~/^2[48]/...
864
Posted By thibodc
awk line variable help
I am using Solaris 10 and have no GNU products installed. I have the following awk code and would like to add a variable. I believe awk doesn't accept variables, but I think nawk can. I would like to...
26,792
Posted By thibodc
Thanks so much...I'll give it a try today!
Thanks so much...I'll give it a try today!
26,792
Posted By thibodc
perl one-liner to get yesterday's date in format dd-MMM-yy (i.e. 01-JAN-12)
I have the following perl one-liner to get yesterday's date, but I would like it in the form of dd-MMM-yy (for example: 01-JAN-12). Can someone alter the below code so I get the format I want? Also,...
1,794
Posted By thibodc
Great...thanks for the help. Sorry for the...
Great...thanks for the help. Sorry for the confusion...but I just realized my data actually goes from b 0: field 8 being 00 to 1F. So, I need w to cycle thru 0 (no change to code), 0F (instead of 4)...
1,794
Posted By thibodc
Thanks for the info...I'll give it a try...
Thanks for the info...I'll give it a try tomorrow...could you explain the code?
1,794
Posted By thibodc
awk data filtering
I am trying to filter out some data with awk. If someone could help me that would be great. Below is my input file.

Date: 10-JUN-12 12:00:00
B 0: 00 00 00 00 10 00 16 28
B 120: 00 00 00 39 53...
1,430
Posted By thibodc
Could you explain the new code...thanks again for...
Could you explain the new code...thanks again for your help.
1,430
Posted By thibodc
The Date: line will be the only line that's there...
The Date: line will be the only line that's there always including every field. B 0: and B 120: lines could be missing (the entire line not individual fields). However, I want the search to key on B...
1,430
Posted By thibodc
text filtering
INPUT FILE:
Date: 10-JUN-12 12:00:00
B 0: 00 00 00 00 10 00 16 28
B 120: 00 00 00 39 53 32 86 29

Date: 10-JUN-12 12:00:10
B 0: 00 00 00 00 10 01 11 22
B 120: 00 00 00 29 23 32 16 29
Date:...
2,951
Posted By thibodc
grep and sed exact match questions
This post was previously mistaken for homework, but is actually a small piece of what I working on at work. Please answer if you can.

QUESTION1
How do you grep only an exact string. I am using...
2,953
Posted By thibodc
grep and sed exact match questions
This was mistaken as homework in a different forum, but is not. These are questions that are close to what I am trying to do at work.

QUESTION1:
How do you grep only an exact string. I am using...
7,927
Posted By thibodc
QUESTION1: grep only exact string. QUESTION2: find and replace only exact value with sed
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.

Contents of car.txt

CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10...
1,622
Posted By thibodc
Will this code work for strings? Like if...
Will this code work for strings? Like if $vechicle1=car make and $vechicle2=bicycle helmet
1,622
Posted By thibodc
Two shell variables using nawk
How do you use two shell variables in awk? I am using Solaris 10 and don't have GNU products installed.

File (transportation.txt) contents:
car make
boat model
airplane landing
snowmobile...
3,738
Posted By thibodc
Agama, can you explain the lines of code? How...
Agama, can you explain the lines of code? How does it know to stop searching at bicycle? Should the bar part of your code be bicycle?
3,738
Posted By thibodc
Do I need the first line if $vechicle is defined...
Do I need the first line if $vechicle is defined elsewhere? $vehicle with be defined by the user and set in the script. set vechicle=$argv[1].
3,738
Posted By thibodc
Thanks for the info. How do you apply the first...
Thanks for the info. How do you apply the first way and second way to my awk command line. Sorry, I'm new to awk.

---------- Post updated at 09:19 PM ---------- Previous update was at 08:09 PM...
Showing results 1 to 25 of 43

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