Search Results

Search: Posts Made By: jaiseaugustine
2,096
Posted By jaiseaugustine
The ^M is nothing but carriage Return. In unix,...
The ^M is nothing but carriage Return. In unix, it will be displayed as ^M.

You cannot run these commands on a zipped file. :D

If you want to avoid, ^M and insert a new line there use below...
1,676
Posted By jaiseaugustine
The outfile.txt must atleast contain the below...
The outfile.txt must atleast contain the below three lines since you are appending these strings.


Try debugging the script by adding 'set -x', just after the first line and run it.

Paste here...
9,487
Posted By jaiseaugustine
IMO, the first command will not work because the...
IMO, the first command will not work because the o/p of 'find' command is not piped in any way to the exec command. But the second and third should work for sure.
I wasn't sure about the -delete'...
9,487
Posted By jaiseaugustine
Go to the main directory and run find . -name...
Go to the main directory and run find . -name "*.back" -type f -exec rm -f {} \;
1,205
Posted By jaiseaugustine
That means, you are reading a file and you want...
That means, you are reading a file and you want to do some editing in that file? If so, press 'i' and start typing. press 'Esc' to go back.
10,238
Posted By jaiseaugustine
Hi, Can we assign each fields to variables...
Hi,

Can we assign each fields to variables by the same 'awk' command??

Thanks.
3,096
Posted By jaiseaugustine
Hi Frappa, Thanks for your reply. I...
Hi Frappa,

Thanks for your reply.

I couldn't find a '-p' switch for 'usermod' neither in 'man' nor in practical.
Any other way comes to your mind!!?

Regards,
Jaise
3,096
Posted By jaiseaugustine
Assign default password to new users in Solaris
Hi All,

I am working on a Solaris 10 machine and now working with a user creation script. I want to create users using the script and assign a default password.

I found the use of 'expect' in...
1,191
Posted By jaiseaugustine
Hi, This might help you... jaise$...
Hi,
This might help you...


jaise$ stat1=/data/Sat\ Night\ Stay.txt
jaise$ echo $stat1
/data/Sat Night Stay.txt
jaise$ echo $stat1 | sed 's: :\\:g' ...
2,685
Posted By jaiseaugustine
Is this file getting updated continuously or just...
Is this file getting updated continuously or just a config file?
1,017
Posted By jaiseaugustine
Hi, You can use the following code also. ...
Hi,
You can use the following code also.


#!/bin/ksh

FS=`/usr/sbin/df -k /var | /usr/bin/tail -1 | /usr/bin/awk '{print $5}' | cut -d % -f1`
if [ $FS -gt 90 ]
then
mailx -s "Filesystem...
10,935
Posted By jaiseaugustine
Hi, I was trying in ksh. May be thats why it...
Hi,
I was trying in ksh. May be thats why it didnt work for me..
thanks to all replied...:)

Regards.
Jaise
10,935
Posted By jaiseaugustine
Hi, Thank you kshji for your help. Your code...
Hi,
Thank you kshji for your help. Your code gave me the correct logic.. Now the below code works perfectly.. :)


cnt=0
bal=`ls -lrt *.txt |wc -l` ...
3,543
Posted By jaiseaugustine
Hi, I didnt understand what is difficult in...
Hi,
I didnt understand what is difficult in this.. I have a suggestion.


for file in `cat list_file ` /* list_file contains the wav files you want to copy
do
cp...
1,678
Posted By jaiseaugustine
Try This, echo text_to_send | mailx -s...
Try This,

echo text_to_send | mailx -s "subject" email@email.co.email
10,935
Posted By jaiseaugustine
Hi, Thanks for the quick replies. here is the...
Hi,
Thanks for the quick replies.
here is the code I wrote.

ls -lrt *.txt |awk '{print $9}' > $HOME/file.list
for file...
10,935
Posted By jaiseaugustine
How to display a counter in shell script?
Hi,
I am writing a script which processes large number of files in a directory. I wanto display a counter which increment after processing each file. I am processing each file in a for loop. If I...
9,950
Posted By jaiseaugustine
Hi, Just wanted to mention one point. This...
Hi,
Just wanted to mention one point.
This error comess only in ksh. Not in Bash.
9,950
Posted By jaiseaugustine
Hi, Here is what you asked.. ...
Hi,

Here is what you asked..

/etc/syslog.conf
---------------------------------------------------------------------------------
# Copyright (c) 1991-1998 by Sun Microsystems, Inc. ...
9,950
Posted By jaiseaugustine
Error: "logger: illegal option -- p"
Hi All,

I am working on a Solaris 10 server. From this month start, it gives the error "logger: illegal option -- p" with each command. If I execute a script whose output shown on terminal, it...
Showing results 1 to 20 of 20

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