Search Results

Search: Posts Made By: bbc17484
1,288
Posted By bbc17484
Hi Don, I need to fetch the data between...
Hi Don,

I need to fetch the data between certain limits. In the above example if we pass the project3,project4 as arguments, I need the contents between those 2 arguments.

In between project3 &...
1,288
Posted By bbc17484
Need help to pick the content from Log file
Hi All,

Below is my requirement.

I need to pick the certain content from log file and display. for example log file consist of following information

project1
project2
project3
...
1,800
Posted By bbc17484
Hi Corona688, I tried the above code snippet...
Hi Corona688,

I tried the above code snippet as below, I am not getting any values into new file

awk '{ while(NF>3) { sub(/ /, ""); $0=$0 } }' file_4.txt > 2.dat

Thanks,
Chandu.
1,800
Posted By bbc17484
One more question here, Is it possible to...
One more question here,

Is it possible to correct the record if there is extra space.

chandu balu 434657 DD

it should become chandubalu 434657 DD after modification
1,800
Posted By bbc17484
Thanks Corona688.. I re-directed to another file...
Thanks Corona688.. I re-directed to another file and finally renamed to file to old file name.
1,800
Posted By bbc17484
Hi, I tried the above command, But its not...
Hi,

I tried the above command, But its not working

awk 'FNR==3' test1.dat > test1.dat

After executing above code, I didnt get any records into the test1.dat file
1,800
Posted By bbc17484
Need help to eliminate the records
Hi All,

Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage

Here is the sample records. File is space...
1,137
Posted By bbc17484
I have adjusted the quotes in my code, that is...
I have adjusted the quotes in my code, that is also working.

awk '$7 < '$day_chk' && $6 =="'$mon_chk'" { print $9 }' > temp.dat
1,137
Posted By bbc17484
Help needed to print the not updated files in the Directory
Hi All,

I have written one program to print the files which are not updated in the specified directory in .Dat file. If I am executing the same command in the command prompt its working fine but...
1,630
Posted By bbc17484
Got the answer with Awk awk '/20120912/ {...
Got the answer with Awk

awk '/20120912/ { print $0 }' test.dat | wc -l
1,630
Posted By bbc17484
awk Help -- If match found return the count
Hi All,

I need to get the count of records in the file, if the passing parameter matches with the list of records in the file. Below is my example

source file: Test1.dat

20120913
20120913...
2,469
Posted By bbc17484
Hi, I know its dumb question but can you...
Hi,

I know its dumb question but can you please explain little bit about following code.

printf "%s_%02d_file.csv" $TS $SEQ

what is the purpose of %s and %02d over there.

Thanks,
Chandu
2,469
Posted By bbc17484
Hi Joeyg, I am not taking any differences...
Hi Joeyg,

I am not taking any differences between the files. That is the exact file name structure and files will come every one hour. our process will pick all those files to load int to stage.
...
2,469
Posted By bbc17484
Help need to find out the missing files in the directory
Hi All,

Below is my requirement.

I want to display the missing files in the directory. Below is my example

From SFTP we are copying 10 files every day. if any files missed on that day need...
1,751
Posted By bbc17484
Help me to perform count & group by operation in shell scripting?
Hi All,

I want to display the distinct values in the file and for each distinct value how may occurance or there.

Test data:

test1.dat

20121105
20121105
20121105
20121105
20121106...
1,361
Posted By bbc17484
Need Help on SFTP login from another server
Hi Experts,

I am writing one shell script. Below is the requirement

1. need to login to the SFTP server, go to the particular folder
2. take the file count in that folder and assign it to...
1,683
Posted By bbc17484
Really good reference doc Jim.. thank u ...
Really good reference doc Jim.. thank u

---------- Post updated at 09:33 AM ---------- Previous update was at 09:30 AM ----------

Jim, Can you suggest me good docs for Unix. I am just beginner...
1,683
Posted By bbc17484
Thanks for replying me Tyler. This is the part of...
Thanks for replying me Tyler. This is the part of the code in one of my script.
so If I used the AWK, that is the better option.

In your code I couldn't understand one thing. I completely new to...
1,683
Posted By bbc17484
Problem with Grep command
Hi All,

Below is my issue.

File consist of the 2 server information. This information I am pulling from Netezza table and keeping it in tmp file.

File format:
database...
16,131
Posted By bbc17484
if -e option means
Hi,
iam working with the existing script which consist of if condition

if [ -e ${v_ctlFile} ]
then
rm ${v_ctlFile}
touch ${v_ctlFile}
fi


what is the significant of -e there in the...
8,313
Posted By bbc17484
eg: $date1 :20090301 $ date2: 20090502 ...
eg: $date1 :20090301
$ date2: 20090502

archivefile dir : /projects/home01/archive/2009/

file names:

20090311_archival.txt
20090312_archival.txt
20090313_archival.txt...
8,313
Posted By bbc17484
Need script to select multiple files from archive directory based on the date range
hi all,

here is the description to my problem.

input parameters: $date1 & $date2

based on the range i need to select the archived files from the archived directory and moved them in to...
6,906
Posted By bbc17484
its requirement.few logfiles and list files will...
its requirement.few logfiles and list files will generate sas program.iam able to move those files into one dynamic folder and zipping that folder.after zipping iam deleting the normal folder.tats...
6,906
Posted By bbc17484
Unix commands in Base SAS programming
hi all,

iam using unix command in the basesas programming.
i need to delete one folder which is dynamically creating when SAS script runs.


rm -rf " dynamic foldername"


iam not able to...
102,879
Posted By bbc17484
zip -j dir dir/* i gave the above command...
zip -j dir dir/*

i gave the above command but the file inside the directory also converted into .gz format.
but i dont want tat.is there format for tat
Showing results 1 to 25 of 30

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