Search Results

Search: Posts Made By: tal
10,518
Posted By tal
That is the case in direction for the last replay...
That is the case in direction for the last replay i want a shell script to get from the user when it is called at least two strings then in the script pass it over to a awk script and to check how...
10,518
Posted By tal
Again how can i split a tring to sub strings when...
Again how can i split a tring to sub strings when the string for example is 21/4 to 21 ,4 and 14:20:06 to 14 20 06?
10,518
Posted By tal
Code: DD=${ddmm%/*} MM=${ddmm#*/} ...
Code:
DD=${ddmm%/*}
MM=${ddmm#*/}
hh=${hhmmss%%:*}
mmss=${hhmmss#*:}
mm=${mmss%:*}
ss=${mmss##*:}
echo $DD-$MM $hh:$mm:$ss
So now you have it separated into parts. So now you just have to...
10,518
Posted By tal
In my script the year is taken automatically by...
In my script the year is taken automatically by the computer without any input needed of year.
10,518
Posted By tal
What with the case of year that february has 28...
What with the case of year that february has 28 days?

-----Post Update-----

IN did it could be 28 or 29.

-----Post Update-----

IN did it could be 28 or 29.
10,518
Posted By tal
Could somebody anwser? -----Post...
Could somebody anwser?

-----Post Update-----

Could somebody anwser?
10,518
Posted By tal
To check if February connection to the year is ok...
To check if February connection to the year is ok ,the value of the day according to any month ,the value of the month and simularlly like this to do for the time.
10,518
Posted By tal
Here it is not important ,what is if that a date...
Here it is not important ,what is if that a date or time while the date with format of dd/mm and the time hh:mm:ss
4,603
Posted By tal
Could somebody anwser?
Could somebody anwser?
4,603
Posted By tal
OF curse validate if the date and/or time is...
OF curse validate if the date and/or time is vaild.
4,603
Posted By tal
sh union.sh 23/06 08:54:14
sh union.sh 23/06 08:54:14
4,603
Posted By tal
shell script data & time validation
How to validate a date and optionly a time in shell scripting when i get the date and time as pararmeters that sent out with the call of the file? (in my case sh union.sh `first parameter ,second...
10,518
Posted By tal
I got it wrong ,now i am asking how to validate a...
I got it wrong ,now i am asking how to validate a date and optionly a time in shell scripting (not in awk) when i get the date and time as pararmeters that sent out with the call of the file. (in my...
10,518
Posted By tal
awk date and time validation
How can i validate if user inserted date and optionly a time is vaild but in awk scripting?
3,387
Posted By tal
awk parameters check
Is there a way to preform check if the parameters that was send with the command awk -f `file_name.awk` `input_file` before even it gets to the BEGIN section (i have tested a try to check in the...
15,844
Posted By tal
BEGIN{ error="false";line=1; } { ...
BEGIN{ error="false";line=1;
}
{
check_count=split($0,count," ");
if (check_count<=3)
{
printf("Not enough sub strings in line %d should have method ,figures of row and count syntax and at...
15,844
Posted By tal
In the case of the awk exit mode it allways...
In the case of the awk exit mode it allways returns 0 ,how can i make the script return a value like i want?
15,844
Posted By tal
Don't confuse with the last replay ,i posted the...
Don't confuse with the last replay ,i posted the script twice ,start reading from the second "#!/bin/sh"
15,844
Posted By tal
GNU nano 2.0.6 File:...
GNU nano 2.0.6 File: union.sh

#!/bin/sh
error=`awk -f input_check.awk strings.txt`
if [ "$error" = "ok" ]
then
awk -f messview.awk messages
awk -f report_maker.awk...
15,844
Posted By tal
But how can i return the value like this with awk?
But how can i return the value like this with awk?
15,844
Posted By tal
an example
#!/bin/sh
awk -f input_check.awk strings.txt \\here i want the input_check.awk script to return a value that is boolean to the value will be used after this line with a if condition
awk -f...
15,844
Posted By tal
awk value return
I have a script in awk and i have a unix shell script too ,and i want to call from the unix shell the awk script but that is returning a value according to what have been checked and found like...
4,010
Posted By tal
Check in awk about a value of variable
I need to check if a variable have numeric value and if yes how many digits does it have, how do i do it?
8,794
Posted By tal
Text files union
How can i union two files that each of them contain text to one new file in unix shell scripting or in awk scripting language?
3,934
Posted By tal
First of all i test samba 3 on openSUSE 10.2 , i...
First of all i test samba 3 on openSUSE 10.2 , i went to the site of opensuse and at last got to the page https://bugzilla.novell.com/show_bug.cgi?id=220272 i got to the point where i need to read...
Showing results 1 to 25 of 36

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