10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I'm trying to print calendar using shell script and i'm able to print it. But the format is not good.
Here is the script.
#!/bin/bash
echo $(date)
echo "Hello $USER"
echo Hostname $(hostname)
echo Working in $(pwd)
echo Here is this month calender
echo $(cal)
$ sh first.sh... (7 Replies)
Discussion started by: chandrakanth
7 Replies
2. Shell Programming and Scripting
Hi,
I have below data in my flat file.I would like to remove the quotes and comma necessary from the data.Below is the details I would like to have in my output.
Could anybody help me providing the Unix shell script for this.
Input :
ABC,ABC,10/15/2012,"47,936,164.567 ","1,036,997.453... (2 Replies)
Discussion started by: sonu_pal
2 Replies
3. Shell Programming and Scripting
Hi All,
There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file.
Eg:
Let us consider sample.csv file and in normal conditions the file would... (40 Replies)
Discussion started by: karthik_ak
40 Replies
4. Post Here to Contact Site Administrators and Moderators
Hi All,
There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file.
Eg:
Let us consider sample.csv file and in normal conditions the file... (1 Reply)
Discussion started by: karthik_ak
1 Replies
5. Shell Programming and Scripting
Hi All,
I have new for shell scripting.
Problem : I have one scrip at serv1 and path of server is /apps/dev/provimage/scripts and script name:extract_ancillary.bat.
I need to call this script at server2(my working server) and execute at server2 .
Please let me know how to build the... (5 Replies)
Discussion started by: Vineeta Nigam
5 Replies
6. Shell Programming and Scripting
Hi Folks,
I have few mailids in a text file and need to check whether the mailid is in correct format or not.
If just to check whether the string is a mailid or not there is a perl module Email::Valid to do the business or we can implement our own logic.
But the mail_ids I am having is... (4 Replies)
Discussion started by: giridhar276
4 Replies
7. Shell Programming and Scripting
Hi
How can I alaign the output of a script.
Exaplme
my script has assigned values to two variables, VAR1 and VAR2
VAR1=This is RAJ working as a DB2 UDB DBA for VISA Corporation, Need your help in Shell scripting
VAR2= This is RAM working as a ORACLE DEVELOPER for TARGET... (1 Reply)
Discussion started by: thriloka
1 Replies
8. Shell Programming and Scripting
Dear all
I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that.
What I actually want from this shell script is that it will move all the files one by one to another server which can be... (2 Replies)
Discussion started by: girish.batra
2 Replies
9. Shell Programming and Scripting
Problem: I have a shell script that will be called by a Perl module that will connect to a db and delete rows. The Perl module will be called by CRON. I am using a Perl module to call a shell script because I need to get the db connection from Perl.
Here is the Perl pseudocode:
... (4 Replies)
Discussion started by: mh53j_fe
4 Replies
10. UNIX for Advanced & Expert Users
grep 'Dept' x.lst |awk -F"Name=" `{print $1" "$2" "$3}`
the output is coming like this
Krishna 1 2340 8383
Rohan 10 982 234
how can I align these numbers using shell script.
even i used typeset but it is useful for only zero-when-blank.... (1 Reply)
Discussion started by: krishna
1 Replies