Search Results

Search: Posts Made By: Glyn_Mo
1,669
Posted By Glyn_Mo
Thanks, that's doing exactly what I'm wanting! ...
Thanks, that's doing exactly what I'm wanting!

I need to read up a bit more on this though. I take it, I need to be looking arrays in AWK?

Many thanks
Glyn
1,669
Posted By Glyn_Mo
How to only display lines where a field has the highest number?
Hello

Wondering if anybody can advise me how I can sort the below file so it only displays lines with the latest versions of an object? As you'll see some of the scripts listed in my file have...
1,654
Posted By Glyn_Mo
Storing variables and using them..
Hello

Apologies for not having the most accurate of thread titles.. I'm using IBM Rational Synergy CM software. I use the Synergy commands in tandem with Unix commands.

I have a directory...
3,350
Posted By Glyn_Mo
Scrutinizer, many thanks. I've had a...
Scrutinizer, many thanks.

I've had a problem when running this against another file though. The file contents are as follows:

bash-3.00$ cat release
ins_smo.sql-22 ...
3,715
Posted By Glyn_Mo
Convert value stored in a variable to epoch time?
Hello

I have a the creation date of a file stored in a variable in the following format:
Wed May 06 10:14:58 2009Is there a way I can echo the variable and display it in epoch time?

I've...
3,350
Posted By Glyn_Mo
Thanks Danmero. Unfortunately I need to be able...
Thanks Danmero. Unfortunately I need to be able to run the command on different files, in which the object names listed won't don't contain "GUI" in the name...
3,350
Posted By Glyn_Mo
Displaying lines of a file which have the highest number?
Hello

Wondering if anybody may be able to advise on how I can filter the contents of the following file:


<object_name>-<version> <Instance>

GM_GUI_code.fmb-4 ...
51,213
Posted By Glyn_Mo
The data comes out like the following: 1)...
The data comes out like the following:
1) cmsynergy_menu.sh-0 Mon May 12 11:47:34 2008
2) cmsynergy_menu.sh-1 Mon May 12 11:51:52 2008
3) cmsynergy_menu.sh-10 Tue Aug 19 11:42:42...
51,213
Posted By Glyn_Mo
Using Sed to perform multiple substitutions?
Hello

I have the following output which is returned with the Month in text format instead of numerical. The output I receive is performed by using Rational Synergy CM software commands from the...
2,642
Posted By Glyn_Mo
Backing out of a script if command doesn't return any results?
Hello

I have a script which emails identifies the user ID of a user and sends them an email. A user can enter part of the name of the person he/wants to send the email to. Then I use the ypcat...
4,068
Posted By Glyn_Mo
Thanks quirkasaurus, though I'm not entirely sure...
Thanks quirkasaurus, though I'm not entirely sure if that's what I'm wanting.

For each result returned by FIND_USE=`ccm folder -fu -u -f "%name"-"%version" ${FOLDER_ID}` I need to be able to...
4,068
Posted By Glyn_Mo
Many thanks for reply, gaurav1086. Is there any...
Many thanks for reply, gaurav1086. Is there any way I can parse each line returned into seperate variables?

Thanks
Glyn
4,068
Posted By Glyn_Mo
Assigning the output of a command to a variable, where there may be >1 line returned?
Hello

I am using unix CLI commands for the Synergy CM software. The command basically searches for a folder ID and returns the names of the projects the folder sits in. The result is assigned to...
2,880
Posted By Glyn_Mo
Thanks very much for everybody's replies. ...
Thanks very much for everybody's replies.



I couldn't get this one to work... The initial error I got was: awk: syntax error near line 1
awk: illegal statement near line 1

I then changed...
2,880
Posted By Glyn_Mo
This is the desired output. UserID ...
This is the desired output.
UserID Process ID Time Active Licence Type User Name
------ ---------- ----------- ------------ ---------...
2,880
Posted By Glyn_Mo
Substituting field contents using AWK
Hello, wondering if anybody may be help me. This is the output of a file, from which I need to display a number of fields regarding which users are using licences for two applications we run. Lines...
2,876
Posted By Glyn_Mo
Copying a directory structure with the latest versions of files
Hello

I have three directory structures for code releases.

Each directory structure looks like this:

bash-3.00$ ls -R | more

.:
Test_Release_1
Test_Release_2
Test_Release_3
...
4,193
Posted By Glyn_Mo
Thanks Devaraj The problem with this...
Thanks Devaraj

The problem with this though, is that if I have version 34 of a file deployed and somebody comes along and deploys version 29.1.1 of a file (which I don't won't to be deployed...
4,193
Posted By Glyn_Mo
Thanks everybody for your help. ...
Thanks everybody for your help.



Should the sed command not be ( using "." instead of ":" ):

DEPLOYED_VERSION=`ccm ls ${TARGET_FILE} | cut -f2 -d"-" | sed 's/.//g'` ?

I'm not sure why...
4,193
Posted By Glyn_Mo
Using the "Less Than" (-lt) switch on numbers with decimal places?
I'm using shell scripts to run some commands for the Configuration Management tool called Telelogic Synergy.

I need to get the script to compare version numbers of files. The version numbers of...
2,085
Posted By Glyn_Mo
I tried using gsub: gsub("(linger:...
I tried using gsub:

gsub("(linger: 1800)","ChangeBase", $0)
gsub(/ /,"CMBase", $0,$13)

It worked okay for replacing "linger: 1800", but not for when the field is empty. Unfortunately it...
2,085
Posted By Glyn_Mo
Definitely 13 fields (including spaces).
Definitely 13 fields (including spaces).
2,085
Posted By Glyn_Mo
Comes back with an error: nawk: syntax...
Comes back with an error:

nawk: syntax error at source line 39
context is
NR > 1 && /linger/ >>> { <<< sub(/\(linger: 1800\)/,"ChangeBase"); print; next} NR > 1 {print $0,"CMBase"; next}...
2,085
Posted By Glyn_Mo
Supressing and replacing the output of a field in Awk
Wondering if anybody can help with changing the output of a field. I'm needing to change the output of a field in this file:

User Process ID Time Active Licences Type
ChangeAdmin...
2,877
Posted By Glyn_Mo
Counting records with AWK
I've been working with an awk script and I'm wondeing id it's possible to count records in a file which DO NOT contain, in this instance fields 12 and 13.

With the one script I am wanting to...
Showing results 1 to 25 of 29

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