Search Results

Search: Posts Made By: methyl
Forum: HP-UX 02-12-2015
23,894
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...
6,056
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...
9,530
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...
7,057
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
53,475
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...
53,475
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...
3,744
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
15,442
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...
3,707
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
4,044
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...
2,109
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
22,652
Posted By daniloviz
Great! It works! Thanks!
Great! It works! Thanks!
3,332
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:...
6,103
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.
...
4,524
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 ----------
...
9,656
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
12,279
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
...
34,884
Posted By RaviTej
HP-UX , /usr/bin/sh
HP-UX ,
/usr/bin/sh
14,462
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...
27,152
Posted By alister
grep '^/dir_a/[^/]*$' Regards, Alister
grep '^/dir_a/[^/]*$'

Regards,
Alister
3,185
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...
4,034
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...
1,713
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
Forum: Linux 08-19-2012
17,231
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...
5,144
Posted By RudiC
if [ $i == 1 ] ^ THIS space!
if [ $i == 1 ]
^ THIS space!
Showing results 1 to 25 of 258

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