Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Casey
4,979
Posted By Casey
Sorry scottn, I don't get your post and don't...
Sorry scottn, I don't get your post and don't understand why you deleted it.. (maybe language misunderstood)

Jim, yep that's why I was I asking this, my problem is something similar to that...
4,979
Posted By Casey
Hi ! At first sight that gave a good...
Hi !

At first sight that gave a good output. I'll try applying it to what I need it for.

Perhaps I should think of another way of doing what I need, 'cause yeah as you say it's a bit messy......
4,979
Posted By Casey
Getting a specific date from cal output with AWK
Hi guys!

I'll make this short... Is there any good way to get the day number that first matches the Monday column from the cal command output with awk (or any other text manipulator commands) ?
...
2,112
Posted By Casey
awk 'BEGIN { RS = "||", FS = "-" } /$1/ { print...
awk 'BEGIN { RS = "||", FS = "-" } /$1/ { print $2 }'


Where $1 is the argument you pass to the script, or the name you want to look for.


EDITED: Now I think that "$1" won't work at all......
2,400
Posted By Casey
If the output of listtapes is something like what...
If the output of listtapes is something like what you've copied there, why would you put that -F, ?
4,796
Posted By Casey
You can add the -1 flag to ls if you want a...
You can add the -1 flag to ls if you want a one-column list for better reading.
6,955
Posted By Casey
What command/s have you tried so far?
What command/s have you tried so far?
7,264
Posted By Casey
Hi Corona, That's nice. I didn't know I...
Hi Corona,

That's nice. I didn't know I could tell crontab to use another file.
I don't have to append anything, actually, I have to modify (not add) a line in the middle of the crontab file,...
7,264
Posted By Casey
Modify crontab file on many hosts...
Hi everyone taking a second to read this :D,

I need to modify a line from the root crontab file... Usually, if I need to do this I use the crontab -e, which opens up the file with Vi, then I edit...
17,202
Posted By Casey
$? gives you the exit status of the latest...
$? gives you the exit status of the latest command executed. In this case if this

echo 'smitha, lucyb, johnk' | grep -q ${USER}

is successfully done, then $? will be 0, else it will be 1 (or...
1,537
Posted By Casey
Looks like a homework or something. What have you...
Looks like a homework or something. What have you tried so far?
10,704
Posted By Casey
What about using fgrep or -F flag? Maybe...
What about using fgrep or -F flag?
Maybe something like this... If the fixed string "Not ok to proceed" is not found in the file, then just check if "ok to Proceed" exists; if it does, then generate...
Forum: AIX 09-28-2009
12,812
Posted By Casey
Google...
Google (http://www.google.com/search?hl=en&source=hp&q=jfs+vs+jfs2&aq=f&oq=&aqi=g7g-m3) has many and very complete answers to your question, you should take a look there...



Regards,
Forum: AIX 09-15-2009
6,104
Posted By Casey
Hi funksen, Mmmh no that is not what I am...
Hi funksen,

Mmmh no that is not what I am actually looking for. I don't want to see the total size of the /

I'll try to give a more clear example of what I wanna do:

ls /

.
/
/dir1...
Forum: AIX 09-14-2009
6,104
Posted By Casey
Hi faruk, thanks for your answer. That...
Hi faruk, thanks for your answer.

That worked fine, but I was actually asking about doing something like listing only directories

i.e.: I use on /

du -ms * | sort

and that shows me a list...
Forum: AIX 09-13-2009
6,104
Posted By Casey
du flag -x
Hi,

I would like to know if there's any option to use with the du command so that I can list only the files/directories on the current filesystem... I usually use

du -gs *But I'd like to see...
10,709
Posted By Casey
Huh, I see... Looks like I'll keep using this...
Huh, I see... Looks like I'll keep using this command until I learn awk/sed.

Also, nice observation reborg.

Thanks to you both for your replies!! ;)


Casey
10,709
Posted By Casey
Finding and using (only) ASCII files.
Hi,

I had to do something I could do in a way that worked fine, but I'm still wondering if there's a shorter way (which I think there is)...

I had to find only the ASCII files of a directory,...
1,893
Posted By Casey
Have you tried the X option for the ls?
Have you tried the X option for the ls?
4,645
Posted By Casey
Does it show any error, message, or something...
Does it show any error, message, or something after you try to delete it?
Also, how are you trying to delete the file?
49,167
Posted By Casey
I think I don't understand what you want to do. ...
I think I don't understand what you want to do.

First off, the ls -l command won't show you the creation date of a file, but the modification date.

If what you want to do is to show the date...
Showing results 1 to 21 of 21

 

Featured Tech Videos

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