Search Results

Search: Posts Made By: acheepi
5,311
Posted By acheepi
This is the complete book. I just wanted some...
This is the complete book. I just wanted some standard unix scripting guidelines and not syntax...
5,311
Posted By acheepi
Unix Shell Scripting Guidelines
Hi,

I was wondering if any of you guys have developed shell scripting guidelines for writing unix shell scripts effectively. This includes naming standards, comments, indentation, error handing...
6,676
Posted By acheepi
We do not have a separate server for each...
We do not have a separate server for each environment. Infact we have all the environments except pord on the same server. Does it make sense to set the env variable in the .profile per user account...
6,676
Posted By acheepi
Thanks for the information. Do we name the 4...
Thanks for the information.

Do we name the 4 env files suffixed with .sh. We currently have 2 diff types of env files as .envdev and set.dev. I also want to make sure these files just have...
6,676
Posted By acheepi
Unix Environment Script
Hi,

I was wondering what is the best way to write a centralized unix environment script. This script would set the application environment variables per specific environment. e.g. dev, qa, test or...
2,976
Posted By acheepi
By the the original code is in the above posting....
By the the original code is in the above posting. Only thing I did was to convert the awk to perl script as suggeted by Ygor. And that works great!
2,976
Posted By acheepi
I'm not extracting the 200th field here.
I'm not extracting the 200th field here.
2,682
Posted By acheepi
Extarct specific records from wide file
I have a file which is 5 million records. And each records has 412 fields has delimited by "|". So that makes each records to be 2923 bytes long. I wanted to extract specific records like top 100 or...
2,976
Posted By acheepi
Thanks a lot! It works great...
Thanks a lot! It works great...
2,976
Posted By acheepi
Awk error for joining records with CR/newline
Is there any way to remove carriage retuns between the records?

These carriage returns are created in an excel cell by using Alt+enter, this is similar to new line...

We have input records...
16,705
Posted By acheepi
awk limit for 199 fields
The above script works fine for some record. I recently got awk error something like more than 199 fields... I'm currently using awk -f {abovescript}.awk on HP-UX 11.0 box...

Is there any way to...
13,020
Posted By acheepi
Thanks for the information.
Thanks for the information.
13,020
Posted By acheepi
Thanks for the information.
Thanks for the information.
13,020
Posted By acheepi
Ftp Status Check
Hi,

I'm using the below script to ftp the file passed as 3rd argument. I'm passing the source and destination directory as 1st and 2nd argument. This script does the ftp successfully.

The...
16,705
Posted By acheepi
Thanks!!
One more thing.. Could you tell me what it does excatly....
especially if ( gsub( /"/, "&", record ) % 2 )

Thanks in advance.

AC
16,705
Posted By acheepi
Thanks a lot for all your inputs. The below code...
Thanks a lot for all your inputs. The below code soles the problem with the example I had given. When the data had double quotes...

{ record = record $0
# If number of quotes is odd, continue...
16,705
Posted By acheepi
Remove Carriage returns between strings in a field
Is there any way to remove carriage retuns between the records?

We have input records separated by TABS and have carriage returns as below:

123 456 789 ABC "1952.00" 678 "abcdef
...
7,639
Posted By acheepi
Documentation for shell script
I was wondering if someone has documentation templates for shell scripts.

I was looking for formal document template for the shell script that would include validation, processing details, etc.
...
14,201
Posted By acheepi
Thanks guys for the information.
Thanks guys for the information.
14,201
Posted By acheepi
Remove ^M (CR) from Unix Files
Is there any way we could remove the "^M" from files on unix?

and also what is the best way to count the TABS in a TAB delimited file per record?

Thanks,
AC
20,281
Posted By acheepi
That's pretty wierd, i tested the redirection...
That's pretty wierd, i tested the redirection with my shell, I got sucess 0. Can we redirect the ./child.sh to logfile?
24,621
Posted By acheepi
Thanks a lot for the reply. It works!
Thanks a lot for the reply. It works!
24,621
Posted By acheepi
Case-insensitive serach with awk
Is there any way to do case insensitive search with awk for the below statement:

month1=`awk '/month/' ${trgfile} | cut -d"=" -f2`

the "month" could come as Month, mOnth,MONTH etc. in a file....
20,281
Posted By acheepi
There is a small correction in my parent.sh as...
There is a small correction in my parent.sh as below


#!/bin/ksh
set -x
echo "I am in parent shell now..."
child.sh >> logfile
ret_stat=$?
echo "rest_stat=$ret_stat"
echo "I am below parent...
20,281
Posted By acheepi
Returning values from child to parent shell
I need to send the status from child shell failure to parent shell. I would like to know how could we accomplish this.


My parent.sh is as below:

#!/bin/ksh
set -x
echo "I am in parent shell...
Showing results 1 to 25 of 25

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