Search Results

Search: Posts Made By: khanvader
14,025
Posted By khanvader
thanks
thanks
14,025
Posted By khanvader
Cool...thanks ---------- Post updated at...
Cool...thanks

---------- Post updated at 11:56 AM ---------- Previous update was at 01:05 AM ----------

Ok...I am almost done here but little issue with the way files are getting renamed after...
5,744
Posted By khanvader
vgersh99...thanks again for your help...it works...
vgersh99...thanks again for your help...it works great for me now :-)
14,025
Posted By khanvader
Can you please explain jsut a little bit how this...
Can you please explain jsut a little bit how this works for my understanding?

I can see that it will look under current directory and subdirectories for files with size over 5M..what is -type f...
5,744
Posted By khanvader
Slitting of file by first column
This is working great for me except that I am not able to move the split files into some other directory.

Within nawk, it splits great by first colulmn but the file is getting saved in the...
4,515
Posted By khanvader
Thanks....it looks good however, can I set what I...
Thanks....it looks good however, can I set what I find back in a variable since I need to pass the filename to another part of the script for processing?
4,515
Posted By khanvader
Reading filename from directory
I am using the following code to read filename from the directory:

for i in ` ls $inputDir | grep $partialName*.csv`
do
echo $i
done

But the echo is giving me the following:

ls |...
14,025
Posted By khanvader
split files based on size
I have a few txt files in some directory and I need to check their sizes one by one. If any of them are greater than 5mb then I need to split the file in two.

Can someone help?

Thanks.
5,744
Posted By khanvader
Skip first header row before splitting
Here is the code so far that I got working with good help from the experts. It is getting the file from the directory and splitting to create files by first column. However I need to skip the first...
5,744
Posted By khanvader
Actually...the script is working for me now. The...
Actually...the script is working for me now. The only change made was the one where u suggesting to not use 'ls' in the for loop. MV is what I needed and not CP so I am clear on that but it was not...
5,744
Posted By khanvader
Thanks for the code...here is my current script...
Thanks for the code...here is my current script and I have some issues that maybe you or someone can point out:

#!/bin/bash
for i in $(ls cliaDir/)
do
myFile=$i
echo "$myFile"
nawk '{
...
5,744
Posted By khanvader
Sorry for misspelling your username :-) Yes,...
Sorry for misspelling your username :-)

Yes, you are right the purpose of the cron job is not just outputting file with unique numbers, I wanted to actually try it myself too but here is really...
5,744
Posted By khanvader
Vgarsh, Thanks for the quick response and...
Vgarsh,

Thanks for the quick response and yes this works exactly how I wanted. I don't understand each and every piece of the command clearly but I can look those up :-)

However, at command...
5,744
Posted By khanvader
Help with Bash Shell Script
I am fairly new to Unix scripting. A need has come where I need to to read the first column of a tab delimited file. The first column will be an id number and so I would need to read the first column...
Showing results 1 to 14 of 14

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