Search Results

Search: Posts Made By: methyl
Forum: HP-UX 02-12-2015
22,043
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...
5,273
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...
8,889
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...
6,293
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
43,903
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...
43,903
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...
2,764
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
12,317
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...
2,303
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
3,428
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...
1,661
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
20,673
Posted By daniloviz
Great! It works! Thanks!
Great! It works! Thanks!
2,520
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:...
5,400
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.
...
3,228
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 ----------
...
8,933
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
11,534
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
...
33,367
Posted By RaviTej
HP-UX , /usr/bin/sh
HP-UX ,
/usr/bin/sh
13,524
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...
26,029
Posted By alister
grep '^/dir_a/[^/]*$' Regards, Alister
grep '^/dir_a/[^/]*$'

Regards,
Alister
2,302
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...
3,274
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,219
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
15,006
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...
4,158
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 11:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy