Search Results

Search: Posts Made By: magesh_bala
6,709
Posted By magesh_bala
Group By in Unix
Hi,
I have file with Header Data and trailer records

Head|currentdate|EOF
Data|AAA|BBB|CCC|DDD|EEE|Source1
Data|AAA|BBB|CCC|DDD|EEE|Source1
Data|AAA|BBB|CCC|DDD|EEE|Source2...
1,427
Posted By magesh_bala
Convert / to \
Hi,
In my input variable values are c:/test/sample/
I need to convert it to c:\test\sample
I need to find and replace it
How do I do it?
var_conversion=`"$var_SearchFile" | sed 's/'\'/'/'/g'`...
1,873
Posted By magesh_bala
Thanks All it works.
Thanks All it works.
1,873
Posted By magesh_bala
Still I am getting the full dirctory name and the...
Still I am getting the full dirctory name and the file name.
1,873
Posted By magesh_bala
This is not working and more over I am not able...
This is not working and more over I am not able to assign the value to the variable

var_DataSourcePath=$1
var_SourceFileName=$2
var_SearchFile= `find $var_DataSourcePath -type d -name...
1,873
Posted By magesh_bala
Find file directory
Hi, I am using the below command for searching the file

var_SearchFile= find $var_DataSourcePath -name $var_SourceFileName

Output: c:\test\Sample\Testfile.txt

But I need to retrive only...
1,466
Posted By magesh_bala
I have to read all the records in the file, now...
I have to read all the records in the file, now the concern is When I do the cut -d"|" -f4

var_targetsystem=`cat "$var_sourcefile" | cut -d"|" -f4`
echo $var_TargetSystem

I am getting the...
1,466
Posted By magesh_bala
Move to different folder
Hi, I have a requirement to move to diff directories based on the input file

Project|SourceFolder|SourceFile|TargetFolder|TargetFile

the above is my Record in a file I have to read the record...
5,386
Posted By magesh_bala
Still I face the same problem.
Still I face the same problem.
5,386
Posted By magesh_bala
Nested If condition
Hi I have a requirement to create a 2 folder based on there existance

if [ -d "$var_name" ]
then
cd $var_name
if [ -d "$var_name3" ]
then
cd $var_name3
mv -fi *.*...
1,708
Posted By magesh_bala
Split file name
Hi, I am need help in creating the unix script

sample_test.txt is my file name

I have to store first name as: sample
second name:test

any one could help me how to split and...
1,767
Posted By magesh_bala
Hi, Thanks for your script one thing I have to...
Hi, Thanks for your script
one thing I have to be clear is I will have the trigger files based on the Trigger file name I have to move the other files.

c:/Trigger folder
Sample_test.txt is...
1,767
Posted By magesh_bala
Read File name and mv files
Hi, I need to read the files Names in the folder and based on the file name I have to move the files to the different folders.

Eg: Sample_test.txt

I need to go to Sample folder and then Test...
Showing results 1 to 13 of 13

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