Search Results

Search: Posts Made By: ora_umair
21,681
Posted By ora_umair
Hi, All - Thanks for all your help. I just...
Hi, All -

Thanks for all your help. I just wanted to see the creative use of SED in this situation.

Thanks again for all your help. I have learned a lot while solving this issue.
21,681
Posted By ora_umair
edidataguy, Please tell me how to change the...
edidataguy,

Please tell me how to change the data into "John Roberts|324-141-984|Acct" format. After that I will try to use my script to format.

Thanks!
21,681
Posted By ora_umair
Thanks Scottn! There are multiple names...
Thanks Scottn!

There are multiple names that are 2,3,4 fields long. Every name is different length.

When I pad with spaces I can fix one line, but the some other line doesn't align and so on....
21,681
Posted By ora_umair
How to format columns using AWK
Hi,

How to format something like this:


John Roberts 324-141-984 Acct
Jack Williams 159-555-555 Acct
William Jackson 949-911-888 Acct
Mark J Walton 145-852-252 Acct
Fred P...
4,892
Posted By ora_umair
I was able to complete my task running the above...
I was able to complete my task running the above script. Thank You!
4,892
Posted By ora_umair
Hi, Franklin52 - BEGIN { printf...
Hi, Franklin52 -


BEGIN {
printf "The following are directories:\n"
while(("ls -l|grep '^d'"|getline ) > 0) print
}
END {
print "There were "NR" directories in this list."...
4,892
Posted By ora_umair
AWK script for directory listing using GREP
Hi, All -

script1.awk contains the following script:

BEGIN {
printf "The following are directory files:"
"ls -l | grep '^d' | {print $0}"
printf "There were "NR"...
6,215
Posted By ora_umair
Thanks everyone for your help. thanhdat,...
Thanks everyone for your help.

thanhdat, you are right. The problem was the missing curly braces.

In AWK, an action is defined as one or more awk commands enclosed in a pair of curly braces...
6,215
Posted By ora_umair
Substitution in AWK
I am trying to use AWK to replace dallinux02 to dallinux03 everywhere in the servers.txt file and move it over to "awk2".

Here is my script "awk2.awk":


gsub(/dallinux02/,...
1,326
Posted By ora_umair
Thanks, ALL - The parenthesis didn't work...
Thanks, ALL -

The parenthesis didn't work for me either.

The problem is solved when I got rid of the parenthesis.

Thanks again ...
1,326
Posted By ora_umair
Newbie AWK Question
$ awk -f awk1.awk

Where awk1.awk reads:

BEGIN {
printf ("Name = Smith, Richard" > "awk1" \n)
printf ("Name = Johnson, Waylan" > "awk1" \n)
printf ("Name = Brown,...
2,336
Posted By ora_umair
SCOTTN <<< Thanks again. Worked like a...
SCOTTN <<< Thanks again.

Worked like a ~charm~.

Following command works as well.

finger | egrep -cv '^Login|^[Tt]'
2,336
Posted By ora_umair
SCOTTN, thanks for your reply. The...
SCOTTN, thanks for your reply.

The following command is working for me except for one thing. It is including the first line in the count:
Login Name TTY Idle ...
2,336
Posted By ora_umair
Help with GREP
Hi, All -

How can I use "grep -c" command with finger/who (or some other Unix command) in order to figure out number of users currently on the system excluding the user ids starting with a/A.
...
3,362
Posted By ora_umair
sed [option] [filename] worked for me ... Thanks!
sed [option] [filename] worked for me ... Thanks!
3,362
Posted By ora_umair
Lower Case > Upper Case
Hi, All -

I have a script where I need to change the server name from "dallinux01" to "DALLINUX01" in multiple places.

Can some one tell me a command that I can use for this? I played with...
6,535
Posted By ora_umair
vgersh99 & jim mcnamara, Thank You!
vgersh99 & jim mcnamara,

Thank You!
6,535
Posted By ora_umair
How to search by File Name Length
Hi, All -

How can I search a directory for files with names over 20 characters in lenght?

Thanks in advance!
2,385
Posted By ora_umair
Thank You ... You have been great help.
Thank You ... You have been great help.
2,385
Posted By ora_umair
Editing a ksh script > Please assist!
I am trying to edit a script that contains the following:

/DBA/general/sh/rman_backup.ksh -d PROD2 -l 1

I am trying to add a logic in the script such that if /DBA/general/sh/rman_backup.ksh...
Forum: Linux 10-24-2008
17,181
Posted By ora_umair
Linux > Export (exp) command
Hi All,

When I run the following command to export the data dump file:

$ exp DEV@ccprod

I get the following message:

Export done in US7ASCII character set and AL16UTF16 NCHAR...
1,727
Posted By ora_umair
Array Example: $ colors[0]=RED $...
Array Example:
$ colors[0]=RED
$ colors[1]=GREEN
$ colors[2]=BLUE
1,727
Posted By ora_umair
Array Example: $ colors[0]=RED $...
Array Example:
$ colors[0]=RED
$ colors[1]=GREEN
$ colors[2]=BLUE
1,727
Posted By ora_umair
New to KSH Scripting > Please Assist!
Array Example:
$ colors[0]=RED
$ colors[1]=GREEN
$ colors[2]=BLUE
Showing results 1 to 24 of 24

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