Search Results

Search: Posts Made By: crunchie
12,317
Posted By crunchie
Thanks pludi that worked a dream
Thanks pludi that worked a dream
12,317
Posted By crunchie
Using Awk to split a line
Hi,

I have a file that contains multiple lines e.g.


/Plane/Wing/Engine/Rotorblades


I cannot use print $4 as the directories will be different lengths.

All i would like to do is...
4,313
Posted By crunchie
Hi Methly, is a path leading to a...
Hi Methly,



is a path leading to a directory that contains the jar files.

I am looking for the string "car" in the contents of each file in the directory.

I have it solved now though....
4,313
Posted By crunchie
Execution problems with the jar -tvf command and "if" logic
Hi,

I am reading a directory that has a list of jar files. I am searching these files for specific keywords. What i would like to do is write the address of the jar file to a new file if the...
2,320
Posted By crunchie
Thanks guys that really helped :)
Thanks guys that really helped :)
2,320
Posted By crunchie
Acting on results from a grep command
Hi,

I am currently reading a tar file and searching for a particular word using grep e.g. Plane. At the moment, if a sentence is found with the word "Plane" the sentence itself is piped to...
1,967
Posted By crunchie
Thanks ill have a look at those now :) Do...
Thanks ill have a look at those now :)

Do you have any suggestions for sites that might have examples of files being transferred from a unix box towindows??
1,967
Posted By crunchie
Copying files from unix servers to other locations e.g. C directory
Hi,

I am just wondering is it possible to move or copy a file from a UNIX server to a different location e.g. the C drive on a computer?

I have used the cp command to move files to...
1,050
Posted By crunchie
Filtering issues while using nawk
Hi,

I am currently filtering a file that has multiple sets of data. An example of some of the data is as follows;


Sat Oct 2 07:42:45 2010 01:33:46 R1_CAR_12.34
Sun Oct 3 13:09:53 2010...
2,069
Posted By crunchie
Hi, A problem has cropped up. Whenever the...
Hi,

A problem has cropped up. Whenever the program tries to filter the following line;


Mon Oct 11 15:07:16 2010 00:01:30 R3_TRAIN_COACH_12.1.2X

I get the following output;

...
2,069
Posted By crunchie
Hi vgersh, The nawk command is working...
Hi vgersh,

The nawk command is working perfectly. Is there any way to add a comma as a delimiter between the different sets of data i.e. instead of


SatOct2201000:30:21CAR...
2,069
Posted By crunchie
Filtering Issues Using sed and awk
Hi,

I am currently using the sed and awk commands to filter a file that has multiple sets of data in different columns. An example of part of the file i am filtering is as follows;


Sat Oct ...
3,446
Posted By crunchie
That is perfect Scrutinizer. Is there a site...
That is perfect Scrutinizer. Is there a site where i could find out how each part of that command works?

The awk command did not work i kept getting a syntax error.

Thank you so much again...
3,446
Posted By crunchie
Hi Scrutinizer, I used your sed command and...
Hi Scrutinizer,

I used your sed command and it works very well except i still have one problem. The three lines of code


Fri Nov 5 15:31:33 2010 00:28:17 R7_BCGNOFJ_70.68
Fri Nov 5 20:57:41...
3,446
Posted By crunchie
Filtering Multiple variables from a single column
Hi,

I am currently filtering a file, "BUILD_TIMES", that has multiple column of information in it. An example of the data is as follows;


Fri Nov 5 15:31:33 2010 00:28:17 R7_BCGNOFJ_70.68...
3,660
Posted By crunchie
Thanks Franklin that worked a dream :) Just...
Thanks Franklin that worked a dream :)

Just for future reference, what does split($NF,a,"_") do exaclty?
I know it filters out the underscore etc but what is the purpose of each part of the...
3,660
Posted By crunchie
I am currently using a program called "Putty" and...
I am currently using a program called "Putty" and my OS is vista. I am using the actual command "awk" and no other versions of it. Unfortunately ive only recently been introduced to this programming...
3,660
Posted By crunchie
Hi, The actual input is Tue Nov 9...
Hi,

The actual input is


Tue Nov 9 06:19:46 2010 00:14:53 R7_WRANMOMFJ_72.53
Tue Nov 9 06:30:56 2010 00:26:17 R7_BSIM_72.53


and the desired output is


Tue Nov 9 2010...
3,660
Posted By crunchie
Filtering issues with multiple columns in a single file
Hi,

Im using the code but it isnt working. Here is the data i am using and the code that i have typed;

Data in File:

Tue Nov 9 06:19:46 2010 00:14:53 R7_WRANMOMFJ_72.53
Tue Nov 9...
3,660
Posted By crunchie
Filtering issues with multiple columns in a single file
Hi,

I am new to unix and would greatly appreciate some help.

I have a file containing multiple colums containing different sets of data e.g.

File 1:

John Ireland ...
3,147
Posted By crunchie
Thanks methyl worked a dream :)
Thanks methyl worked a dream :)
3,147
Posted By crunchie
Merging information from multiple files to a single file
Hello,

I am new to unix and need help with a problem. I have 2 files each containing multiple columns of information ie;

File 1 :
A B C D E
1 2 3 4 5

File 2 :
F G
6 7

I would...
Showing results 1 to 22 of 22

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