Search Results

Search: Posts Made By: synergy_texas
11,911
Posted By synergy_texas
Found what I needed. Apparently there is a -mmin...
Found what I needed. Apparently there is a -mmin in the find command that will find files that have been changed any number of minutes in the past. This looks like it will work. Thanks for the...
11,911
Posted By synergy_texas
Not sure what stat is. I am on AIX 5.3 and it...
Not sure what stat is. I am on AIX 5.3 and it does not find stat. I see the stat function in Wikipedia. Not sure why AIX 5.3 does not seem to use it. Any ideas? Perhaps it is part of a utility...
11,911
Posted By synergy_texas
Converting past date to seconds
Need a little help developing a ksh script. Have read through Perderabo's datecalc routine and it does not seem to fit the function I am looking for. Basically what I am trying to do is find any...
17,369
Posted By synergy_texas
I agree with Lakris, I have learned a lot from...
I agree with Lakris, I have learned a lot from this post. It amazes me how you guys come up with 1 liners that sometimes take me up to 15 lines. You guys are awesome. I appreciate your help. I...
17,369
Posted By synergy_texas
Almost there
OK. So here is what I have. It almost looks good, but can't figure out why it is giving me the output it is providing.


exec < workunits-status.txt
while read line; do
awk '{ if ($1 <...
17,369
Posted By synergy_texas
Working now, for the most part. I have the...
Working now, for the most part. I have the columns aligning up as I would like. The only other thing I would like to do is trim the leading spaces out of the first field. I am using the awk script...
17,369
Posted By synergy_texas
Sorry. The expected output has the columns lined...
Sorry. The expected output has the columns lined up. The forum seems to have taken out the spaces.

This has been edited now with the [code] tags in this posting. The output should look correct.
17,369
Posted By synergy_texas
Getting closer
Thanks for the feedback. Still not doing quite what I need. Here is a sample of the input. The first column has 12 characters with leading spaces. The last column is character #36.


...
17,369
Posted By synergy_texas
problem developing for or while loops with the cut command
I have been working on a script all day and am having very little success. Essentially, I am reading a file and trying to format the data in the file. I am currently trying to put the data into...
3,010
Posted By synergy_texas
:D Thanks for the responses. All were great...
:D Thanks for the responses. All were great ideas. Summer_cherry had the most compact code and easiest to manipulate for an inexperienced shell programmer like me. However, I did like all your...
3,010
Posted By synergy_texas
That is correct. I want to keep only the last...
That is correct. I want to keep only the last two versions of each file and delete all others. My sample output shows the results I would get if the script works correctly. That part would not be...
3,010
Posted By synergy_texas
shell script preserving last 2 versions of files
I need some help with the logic and syntax for a shell script (ksh) that will search a directory and look for similar files and save only the last two versions. The version number is in the file...
6,386
Posted By synergy_texas
Rubin, I don't have gawk installed, so I can't...
Rubin,
I don't have gawk installed, so I can't use the first one. I tried the third one and didn't get any results other than the same strings that were in the sftplist.txt.

On the second...
6,386
Posted By synergy_texas
Here is what I have, rev sftplist.txt |...
Here is what I have,

rev sftplist.txt | cut -d ' ' -f2- | rev | tr ' ' '\n' > users.txt

This is what I get.

tr: 0653-712 The combination of options and String parameters is not legal....
6,386
Posted By synergy_texas
Sure, Anything to help. Here is...
Sure,
Anything to help.

Here is sftplist.txt

user3 user1 user2 /mydir/next/dir1
user2 /mydir/next/dir2
user1 user4 /staging/next/dir1


Output users.txt

user3
user1
user2
user2...
6,386
Posted By synergy_texas
Thanks for the suggestion, but your solution...
Thanks for the suggestion, but your solution still provides me the last field of the record of which I have to cleanup from the file. It's not that big of a deal to perform the cleanup, I just like...
6,386
Posted By synergy_texas
Using awk to search variable length records
New to awk and need some help. I have a script that I would like to make more compact. I want to read a file and grab every field, from every record, except the last field. The records are...
7,638
Posted By synergy_texas
Not sure how to close a post. However, I saw a...
Not sure how to close a post. However, I saw a similar post in the related posts section below my posting. It has the answer. This is the first time I have used this forum. It looks great though....
7,638
Posted By synergy_texas
Passing a variable to awk while in a shell for loop
I am a newbie to awk and c programming, however am not a unix newbie. However, I do need help with a kshell script I am writing. It is almost complete, the last step is killing me. Any help would...
Showing results 1 to 19 of 19

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