Unix/Linux Go Back    

Showing results 1 to 25 of 44
Search took 0.01 seconds.
Search: Posts Made By: abhi_123
Forum: UNIX for Beginners Questions & Answers Linux 3 Weeks Ago
Replies: 2
Views: 208
Posted By abhi_123
Extract characters from a string name

Hi All,

I am trying to extract only characters from a string value eg: abcdedg1234.cnf
How can I extract only characters abcdedg and assign to a variable.
Please help.

Thanks
Forum: UNIX for Beginners Questions & Answers Linux 08-10-2017
Replies: 2
Views: 295
Posted By abhi_123
Get the remote server file size in UNIX

Hi All,

I am trying to sftp, get a file from remote server.
Post this we need to check the remote server file size or checksum value of the remote server file and compare it with the file size in...
Forum: UNIX for Beginners Questions & Answers Linux 05-21-2017
Replies: 3
Views: 231
Posted By abhi_123
Thank you RudiC. The ABC pattern can be any...

Thank you RudiC.
The ABC pattern can be any where in the file. Please find he corrected data:
20840GFC00524096100000LAU1LDNUSD CR 6.322017041120170411 ...
Forum: UNIX for Beginners Questions & Answers Linux 05-19-2017
Replies: 3
Views: 231
Posted By abhi_123
Need to find and replace in a file

Hi All,

I am having below sample data in a file.
I need to find all the line form this file with word ABC and i need to replace the characters at position 120 which is "CO:BOGFDUI"(30chars) in...
Forum: UNIX for Dummies Questions & Answers Linux 10-13-2014
Replies: 2
Views: 409
Posted By abhi_123
Need help regarding date calculation

Hi All,
I need to calculate the date for monday to friday.

Say today is 10.oct.2014 then I need to calculate the date as 09.oct.2014.
If today is 13.oct.2014 then I need to calculate the date as...
Forum: UNIX for Dummies Questions & Answers Linux 09-30-2014
Replies: 6
Views: 724
Posted By abhi_123
Thanks a lot R.Singh. Could you also please...

Thanks a lot R.Singh.

Could you also please explain me the below meaning:
1) 00-30/5 22 --> 30divided by 5? and 22 means..?
2) 30/10 ?
Thanks again.
Forum: UNIX for Dummies Questions & Answers Linux 09-30-2014
Replies: 6
Views: 724
Posted By abhi_123
Need help regarding cronjob scheduling

Hello All,

I have three requirements to schedule three shell scripts in crontab.
Could you please help me in this:
1) To schedule a shell script every 5mins interval every day between 10PM to...
Forum: UNIX for Dummies Questions & Answers Linux 06-25-2014
Replies: 2
Views: 710
Posted By abhi_123
Find files between two datetime..

Hi All,

How do i find all the files between two times.
Eg: 26 may 2014 06:00 to 26 may 2014 14:00

mmin and mtime gives for a specific period. we receive hundreds of files input directories and...
Forum: UNIX for Dummies Questions & Answers Linux 06-17-2014
Replies: 7
Views: 999
Posted By abhi_123
Deleting the files with spaces

Hi All,
The shell script is currently using the below command to find the seven days older files from a directories and delete them.

Issue occurs when the file name consists of space in them. eg:...
Forum: UNIX for Dummies Questions & Answers Linux 12-10-2013
Replies: 2
Views: 468
Posted By abhi_123
Thanks a lot for your help.. it worked out.. :)

Thanks a lot for your help.. it worked out.. :)
Forum: UNIX for Dummies Questions & Answers Linux 12-10-2013
Replies: 2
Views: 468
Posted By abhi_123
Tools Issue with variable assignation

Hi All,
My files(.csv) are created in download path.
All the files files are having footer with count of rows or may be blank.
When i am trying to put this below code in shell script and run it,...
Forum: UNIX for Dummies Questions & Answers Linux 12-09-2013
Replies: 2
Views: 526
Posted By abhi_123
Wrench Unable to find files using wild card search

Hi All,

My server is AIX and i am trying to search for a file in a specific path in directory.
The file name can be of two types:
Position_20131114.csv
Position123333_20131114.csv

I am...
Forum: UNIX for Dummies Questions & Answers Linux 10-30-2013
Replies: 4
Views: 1,104
Posted By abhi_123
Thanks a lot Yoda for the help. :) And what is...

Thanks a lot Yoda for the help. :)
And what is the difference between -a and -f.
It says -f is for regular file and -a is it for any file. Am i correct.?
Forum: UNIX for Dummies Questions & Answers Linux 10-30-2013
Replies: 4
Views: 1,104
Posted By abhi_123
IF -a condition meaning.

Hi All,

Could you please let me know what is the meaning of below -a condition if the if?

if ! [ -a $SOURCEPATH/$SOURCEFILE_A ]

Thanks in advance for the help.
Forum: UNIX for Dummies Questions & Answers Linux 06-21-2013
Replies: 3
Views: 587
Posted By abhi_123
sample output

"2008^1235566^^asghagsdg^212^N^"

Only the 1st columns is changed from 200809 to 2008.
Thanks
Forum: UNIX for Dummies Questions & Answers Linux 06-20-2013
Replies: 3
Views: 587
Posted By abhi_123
Cutting only the 1st column data

Hi All,

I having a data file which consists of 20cr records in it. The 1st column is year field which consist of year in format 200809 and fields are seperated with ^.
How do i trim it to 2008 in...
Forum: UNIX for Dummies Questions & Answers Linux 12-08-2012
Replies: 3
Views: 1,057
Posted By abhi_123
Replace a character with other

Hi All,
I am having the below sample lin in the file.
'''||V_D_BOOKING_TYPE||''' || ''¬'' || '''||V_D_SHARE_DELIV_FL||''' || ''¬'' || '''|| SUBSTR(V_D_FINANCIALDATATYPE,1,1) ||''' || ''¬'' ||

I...
Forum: UNIX for Dummies Questions & Answers Linux 12-02-2012
Replies: 3
Views: 1,674
Posted By abhi_123
Get the previous month from date

Hi All,
I am using the below code to get the year and month from date:
Below gives output like 201212.
dt=`date '+%Y%m'`

how do i get the previous month value(ie: subtract 1 from date)
example...
Forum: UNIX for Dummies Questions & Answers Linux 11-16-2012
Replies: 5
Views: 1,207
Posted By abhi_123
thanks it worked

thanks all it worked. :)
Forum: UNIX for Dummies Questions & Answers Linux 11-15-2012
Replies: 5
Views: 1,207
Posted By abhi_123
[Solved] Finding the latest file in a directory

Hi All,

I am using the below command to find the latest file in a dir:
ls -tr $v_sftphomedir/$v_sourcefile |tail -1
or
ls -t1 $v_sftphomedir/$v_sourcefile |head -1

and the outpur returned is...
Forum: UNIX for Dummies Questions & Answers Linux 11-12-2012
Replies: 12
Views: 19,892
Posted By abhi_123
Thanks it worked.

Thanks a lot to all. it worked out. :)
Forum: UNIX for Dummies Questions & Answers Linux 11-11-2012
Replies: 12
Views: 19,892
Posted By abhi_123
Hi bipinajith, Yes it works. But it creates...

Hi bipinajith,

Yes it works. But it creates a new file.
Can t remove the control-m character from the header variable directly.
As this will require less of my code change.
Please help...?...
Forum: UNIX for Dummies Questions & Answers Linux 11-11-2012
Replies: 12
Views: 19,892
Posted By abhi_123
Hi bipinajith, I tried ur code below: sed...

Hi bipinajith,

I tried ur code below:
sed 's/^'$v_header''"$(printf '\015')"'*//g' input_file > output_file

but the output file is not having header.

My req is:

1) Assign the header...
Forum: UNIX for Dummies Questions & Answers Linux 11-11-2012
Replies: 12
Views: 19,892
Posted By abhi_123
when i do the steps mentioned above i get the...

when i do the steps mentioned above i get the below error :
sed 's/'"$(printf '\015')"'/'$v_header'/g' $v_header > Newheader
Can't open "MEMBER"|"MEMBERDESC"|"LEVEL0"|"LEVEL1"|"LEVEL1DESC"|"
...
Forum: UNIX for Dummies Questions & Answers Linux 11-11-2012
Replies: 12
Views: 19,892
Posted By abhi_123
i just want to replace it in my header variable...

i just want to replace it in my header variable which has the file header content take form file and not entire file.
Its just a variable in shell script which has the header value and not a...
Showing results 1 to 25 of 44

 


All times are GMT -4. The time now is 05:19 AM.