Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: methyl
Forum: HP-UX 02-12-2015
11,472
Posted By Yasin Rakhangi
How to check password expiration date of particular user?
Hi Guys,


I am new to HP-UX and want to find expiration date of particular user please also note i don't have root access on that server.

for e.g.
i have user abc on my HP box and want to...
3,794
Posted By Don Cragun
Robin, If we assume that this thread is trying...
Robin,
If we assume that this thread is trying to undo what the other thread started by the submitter of this thread did (create a million 1K byte files in a single directory): Help with shell...
7,752
Posted By bakunin
I suppose the problem comes from "$COUNT" not...
I suppose the problem comes from "$COUNT" not being initialised. If the expression driving the for-loop in the first line of your script produces no output the loops body will never be executed and...
2,617
Posted By jgt
your attempt #1 would have worked if you had left...
your attempt #1 would have worked if you had left the comma out.


tar cvf diagnose.tar error.log myscript.sh
9,191
Posted By alister
True. With regard to the original post, if...
True.

With regard to the original post, if the script is sourced, even if the shebang is present, it is never used.

Regards,
Alister

---------- Post updated at 10:02 AM ---------- Previous...
1,645
Posted By mirni
$ cal -m 11 1981 November 1981 Su...
$ cal -m 11 1981

November 1981
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
3,330
Posted By jacobs.smith
Thanks methyl. I was learning awk since a little...
Thanks methyl. I was learning awk since a little while. So, wanted to know how to do it. I knew sed is lot more easier for basic text editing. But, wanted to see how awk does it. Your time is...
9,191
Posted By alister
That's incorrect. When an executable file's...
That's incorrect. When an executable file's header/magic isn't recognized, it is passed to /bin/sh regardless of the user's shell.

Note that this behavior (falling back on /bin/sh) is only...
725
Posted By Corona688
If you wrote it up in Microsoft Notepad, it will...
If you wrote it up in Microsoft Notepad, it will be full of carriage returns which will cause it to fail.

tr -d '\r' < wingarbage > fixedfile
2,572
Posted By JC_1
Hi methyl, sorry for the ambiguity. What I...
Hi methyl,

sorry for the ambiguity. What I meant by "it" was the first path. I was trying to replace a path within a text file with a different path. I could not get it to work because it involved...
994
Posted By bakunin
What have you tried so far and why/how did it...
What have you tried so far and why/how did it fail?

Upon thread O/P posts this information any answer will be moderated!

@parmitthal2007: I don't care if you are wanting us to do your homework...
Forum: Ubuntu 08-24-2012
12,160
Posted By daniloviz
Great! It works! Thanks!
Great! It works! Thanks!
1,545
Posted By Don Cragun
On a POSIX conforming implementation of the ls...
On a POSIX conforming implementation of the ls utility, the command:
ls -a
would list all files in the current directory even if the first character in the filename is a <period>.

The command:...
4,125
Posted By alister
A directory timestamp (and its mode) can be set...
A directory timestamp (and its mode) can be set accordingly after its files are copied/extracted.

In case you were thinking of a different scenario, I am referring to an archiver unpacking.
...
2,566
Posted By edstevens
That seems to have fixed the issue. Thanks ...
That seems to have fixed the issue. Thanks


"Have I told you lately how much I dislike Windows?"

---------- Post updated at 12:06 PM ---------- Previous update was at 11:44 AM ----------
...
7,065
Posted By elixir_sinari
Assuming that the ending patterns are adjacent...
Assuming that the ending patterns are adjacent (if repeated), this should work:
awk '/2012 Jun/{p=1}
!/2012 Jul/ && prev~/2012 Jul/ && p{p=0}
{prev=$0}p' file
6,638
Posted By Chubler_XL
This should work on most flavours of UNIX...
This should work on most flavours of UNIX depending on how standard the output of cal is.

I've tested it with cal formats like:
August 2012
Su Mo Tu We Th Fr Sa
1 2 3 4
...
27,992
Posted By RaviTej
HP-UX , /usr/bin/sh
HP-UX ,
/usr/bin/sh
19,285
Posted By alister
grep '^/dir_a/[^/]*$' Regards, Alister
grep '^/dir_a/[^/]*$'

Regards,
Alister
9,648
Posted By bakunin
The first thing is you have written command...
The first thing is you have written

command .... << EOF

instead of

command .... <<EOF

notice the space character, which may be a problem.

further, you have indented the code, which is...
1,423
Posted By TKD
First I used passmass to reset the application...
First I used passmass to reset the application account (ex app1) password back to what it originally was on multiple servers.

Then via a script I did this on multiple servers:
# Turn off password...
870
Posted By vgersh99
I think you meant 6-th column (based on your...
I think you meant 6-th column (based on your sample output):

awk '$6=($6==1)?2:1' myFile
1,963
Posted By Chubler_XL
Strange the output I would have expected from the...
Strange the output I would have expected from the above script is:

echo "Ticket #:
7932
number entered 7932
grep -l 7932 /home/ubu/Desktop/jobs/Holdup10.txt /home/ubu/Desktop/jobs/Holdup11.txt...
Forum: Linux 08-19-2012
11,488
Posted By Don Cragun
You didn't make all of the changes I suggested...
You didn't make all of the changes I suggested and you made some changes I didn't suggest. Let's analyze the commands being run inside the for loop. (I've removed the semicolons and split the...
2,523
Posted By RudiC
if [ $i == 1 ] ^ THIS space!
if [ $i == 1 ]
^ THIS space!
Showing results 1 to 25 of 258

 

Featured Tech Videos

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