Search Results

Search: Posts Made By: me_newbie
3,248
Posted By me_newbie
Organize file according to their extension
Hi Everyone !

i want to make an application which is written in shell script and in Bourne shell (sh)

i want, when my script is executed, it read all the files in the directly and move them to...
3,839
Posted By me_newbie
Hi ! my problem was to convert the...
Hi !

my problem was to convert the mentioned time stamp into second with a specific format because the file i'm reading has that specific format so i'm bounded

"01/Nov/2011:03:14:59"

i...
3,839
Posted By me_newbie
Hi ! i already tried to remove the / and : ...
Hi !

i already tried to remove the / and :

time="01/Jan/2011:12:55:21"
time=`echo "$time" |sed 's/\// /g'`
time=`echo "$time" |sed 's:\:: :g'`
time=`date -d "$time" +%s`



is there...
3,839
Posted By me_newbie
Hi Guys ! how to convert this one ... ...
Hi Guys !

how to convert this one ...

Date_Time="01/Jan/2011:12:55:21"
Date_Time=`date -d "$time" +%s`
echo Date_time

Output
date: invalid date `01 Jan 2011:12:55:21'

do i have to...
3,839
Posted By me_newbie
Hi Vgersh99 ! mydate="22/Oct/2011" ...
Hi Vgersh99 !

mydate="22/Oct/2011"
mydate=`date -d "$mydate" +%s`

Output
3,839
Posted By me_newbie
Convert to Integer
Hi fellows!!

i'm doing something which is not working out for me properly which i don't understand why

nowdate=`date +%s`
echo $nowdate



now the problem how to convert a date which is...
1,401
Posted By me_newbie
Hi sorry i didn't mention in the beginning...
Hi

sorry i didn't mention in the beginning that i'm using BOURNE SHELL (bash)? it wouldn't work i guess

BR

Ewa
1,401
Posted By me_newbie
select the lines in between some time span
Hi Everyone !


i want to take all the lines from a file that falls in between some date... and every line in a file has a time stamp..


---some text---- 01/Jan/2010 ---- some other text ----...
2,107
Posted By me_newbie
Hi Vgersh99 ! thanks for you help ... it is...
Hi Vgersh99 !

thanks for you help ... it is much appreciated, because i got want i asked

Regards,

Ewa
2,107
Posted By me_newbie
How to read the last line of file
Hi everyone

i want to know how to read the last line of file?

i know how to read the file line by line but i want to get to the last file


while read line
do

done<filename

is there...
1,902
Posted By me_newbie
Hi thanks corona and radoulov... both...
Hi

thanks corona and radoulov... both solutions are perfect and solved my problem but can anyone explain how the following code works

sort -t/ -k3n -k2,2M -k1n in file

Best Regards,

Ewa
1,902
Posted By me_newbie
Date and Time sorting
Hi Guys!

i have a problem of sorting column chronologically because the data i have in column is in the following format

06/Dec/2006:18:09:54

and need to be sorted in the following way (upto...
1,211
Posted By me_newbie
Hi ygemici very grateful to you... couldn't...
Hi ygemici

very grateful to you... couldn't be taught in a better and simplest way as you did, each line is precisely explain, peace on you

thanks once again

kind Regards,

Ewa
1,211
Posted By me_newbie
Hi your code is working fine but can you...
Hi

your code is working fine but can you explain a bit only this part >>>> sed 's/ *\(.*\) \(.*\)/\2 \1/'


and if you don't mind please explain also

what is difference between these two...
1,211
Posted By me_newbie
need help in correcting the code
Hi Guys !

can anyone help me to write the code doing same thing without using awk. is it possible using cut command?

awk '{c[$1]++} END {for(k in c} print k "\t\t" c[k ];}' file_name | sort...
2,366
Posted By me_newbie
Hi Corona ! Thanks... your help is...
Hi Corona !

Thanks... your help is appreciated your solution worked

cheers!

BR

Ewa
2,366
Posted By me_newbie
Hi Corona ! thanks dear you explained it in...
Hi Corona !

thanks dear you explained it in a very detailed level, help appreciated... i'm working with a similar problem from two days if i couldn't solve, i'll need help of you guys can i post...
2,366
Posted By me_newbie
Hello Guys ! i'm new to shell so please if...
Hello Guys !

i'm new to shell so please if anyone could explain the following things in detail

1> F"[,.?\! ]" why we used it? and what all these sign (,.?\!) means here can we add more?
2>...
Showing results 1 to 18 of 18

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