Search Results

Search: Posts Made By: divz
47,153
Posted By divz
Thanks a lot guys. I kind of figured it out. This...
Thanks a lot guys. I kind of figured it out. This is what i did

for i in `ls -F | grep '/$'` ; do
du -s `echo "/data/$i"`
done

This gives the required result :)
47,153
Posted By divz
Find the size of a directory
Hi,

I would really appreciate if you could help me with this. I have a directory structure like this :-
/data
Under data i have directories /data1 , /input_files , /output_files etc . Under...
2,035
Posted By divz
Thanks a lot!!! Both methods are much better...
Thanks a lot!!!
Both methods are much better than what i was trying.
:)
2,035
Posted By divz
Help with formatting of file.
I have a file with following file format -

DMCRH|||83000171|||14022008||0430|||8956612.23|J|||3571235|1378452|23468|6894|9234|...
2,519
Posted By divz
sed "s/20070416/$enddate/g" file > temp mv temp...
sed "s/20070416/$enddate/g" file > temp
mv temp file

Hey i tried again, the code sed "s/$date1/$enddate/g" works fine. I did some mistake earlier.
Thanks a lot for all your help!!!
:)
2,519
Posted By divz
for D in `cat file`;do str1=`echo $D|cut...
for D in `cat file`;do
str1=`echo $D|cut -c1-15`
date1=`echo $D|cut -c16-23`
date2=`echo $D|cut -c24-31`
str2=`echo $D|cut -c32-`
enddate=$enddate
echo $str1$enddate$enddate$str2 >> temp
done...
2,519
Posted By divz
[QUOTE=anbu23;302127633]sed...
[QUOTE=anbu23;302127633]sed "s/20070416/$enddate/g" file > temp
mv temp file

This will not work for me, as i cannot give the string 20070416 and replace it with $enddate as this string is not...
19,820
Posted By divz
:) Thanks a lot for the explaination.... This...
:) Thanks a lot for the explaination....
This is really good work.
19,820
Posted By divz
can you please explain hoe does ths work???...
can you please explain hoe does ths work??? :confused:
2,519
Posted By divz
Repacing part of string with a variable
I have following strings in a file
DUPTASMTRMMBAL,20070416200704160117232101172321,,,,,,,@@@Y
DUPTASMTRMMCON,20070416200704160127189901271899,,,,,,,@@@Y...
1,512
Posted By divz
File Retrival - Urgent!!!
I have by mistake done the following
cp abc.txt def.txt

file def contained an important script.

Is there any way to retrive it back??
20,369
Posted By divz
By convert do you mean convert it into comma...
By convert do you mean convert it into comma separated file?
4,137
Posted By divz
Try sudo -s <username> It will ask for...
Try

sudo -s <username>

It will ask for password for the username provided.
2,534
Posted By divz
I got how to do it... :) Thanks !!!
I got how to do it...
:)
Thanks !!!
2,534
Posted By divz
Help Please...........
I have a file (say file.txt) with following entry (there are other entries in the file too)
F07812000166220070627012300 X
I have divided the string and assigned it to different...
2,552
Posted By divz
:) Thanks a lot. It works!!!
:) Thanks a lot. It works!!!
2,552
Posted By divz
Inserting a delimiter after certain charater position
Hi,
I have a string : -
ICFFHASMTAAMPFINCL22082006000002548789632
and i want to add delimiter after certain charater position through a script, eg. ICFFH,ASMTAAMPF,INCL,22082006,000002548789632.
...
1,566
Posted By divz
String Restructure
Hi,

I need to change the below string in a file

CIMCRASMTAAMPF 2208200600000000000038541254125 @@@Y

to

ICFFH,ASMTAAMPF,,,IMCR,22082006,000038541254125

Please help.
1,566
Posted By divz
String restructure.
Hi,

I need to change the below string in a file

CIMCRASMTAAMPF 2208200600000000000038541254125 @@@Y

to

ICFFH,ASMTAAMPF,,,IMCR,22082006,000038541254125

Please help.
Showing results 1 to 19 of 19

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