Search Results

Search: Posts Made By: finalight
9,659
Posted By finalight
I don't think running cd in a shell script will...
I don't think running cd in a shell script will actually jump to the directory. The directory path will still be static to your current working directory even after jumping
1,878
Posted By finalight
the thing i'm doing on unix shell scripting, so I...
the thing i'm doing on unix shell scripting, so I not sure if there's an ability to create excel file and write it onto the spreadsheet directly or not

i also viewing the files on the putty...
1,878
Posted By finalight
writing to file question
when i do a echo on my variable and paste into excel, the result is like this
ignore the commas here, just take it as if they're blank space, since i doing something else with it
...
2,255
Posted By finalight
help with looping
vesselNames values:
xxx
yyy
zzz



vesselPlanned values:
xxx
zzz
zzz
zzz




OIFS=""
OIFS=$IFS
IFS="\n"
2,479
Posted By finalight
so instead of echo, i should do a printf instead?
so instead of echo, i should do a printf instead?
2,479
Posted By finalight
tab string variables nicely
I'm using korn shell for my shell script

I'm reading a file and get the data I want out and append it to a variable
directly, it shows like this


AutoMicroReport_53767.txt BANI BHUM (570N) ...
Forum: Programming 05-22-2008
5,595
Posted By finalight
compile java with GUI on unix system/putty
is it possible in the first place?

if so, how should I go about it?
32,114
Posted By finalight
is it possible to just directly compare regex in...
is it possible to just directly compare regex in the if-else statement?
32,114
Posted By finalight
can explain to me why you do two [0-9][0-9]?
can explain to me why you do two [0-9][0-9]?
32,114
Posted By finalight
compare variable against regular expression?
is it possible? if so, how?

i want to check a variable whether is it a number or letter in an if-else statement
57,871
Posted By finalight
then how do I count the number of files that has...
then how do I count the number of files that has the word 'test'? assuming that the word only exist in the file once
57,871
Posted By finalight
count number of files in a directory
what's the script to do that?
i want to only count the number of files in that directory, not including any sub directories at all
9,190
Posted By finalight
append newline to existing variables
firstly, i check is the variable empty or not, if so


vesselNameList=`echo $vesselName`


if not


vesselNameList="${vesselNameList}""\n"`echo "$vesselName"`


and it produces this...
7,437
Posted By finalight
sorry, checked wrongly, it's korn shell
sorry, checked wrongly, it's korn shell
7,437
Posted By finalight
usr/bin/sh..I think it's bourne shell
usr/bin/sh..I think it's bourne shell
7,437
Posted By finalight
split variable values into array
i have these values inside variable $blah


BUNGA TERATAI 3 5055 ITH 1 0 0 0 1 1
JADE TRADER 143W ITH 4 0 0 0 4 4
MOL SPLENDOR ...
10,265
Posted By finalight
oh dear..i think you guys don't understand the...
oh dear..i think you guys don't understand the question

I want to delete all the files except test.txt
10,265
Posted By finalight
oh..I don't need to find the subdirectories..only...
oh..I don't need to find the subdirectories..only that particular directory will do..
2,173
Posted By finalight
loop through variable
i have these data in a variable "$test"

[code]
BUNGA TERATAI 3 5055 ITH 1 1
JADE TRADER 143W ITH 4 4
MOL SPLENDOR 0307A ITH 3 3
[code]

the red coloured are the ones that i want to take and...
10,265
Posted By finalight
delete all but one files in a directory
what`s the script to do that? assuming my text file is "test.txt"
1,839
Posted By finalight
the last two fields, as a matter of fact
the last two fields, as a matter of fact
2,581
Posted By finalight
oh nvm, because the data i post is just a part of...
oh nvm, because the data i post is just a part of the whole file actually..i was trying to find some other way to do it
1,839
Posted By finalight
problem cutting
echo $line|cut -d " " -f`$plannedCount`-


and this is the output


$ ./read.sh
./read.sh: 12: not found
JADE TRADER 143W MYPEN 40 HC M X10 28 7 1 0
./read.sh: 9: not found
MYPEN 20 GP X...
2,581
Posted By finalight
awk: syntax error near line 2 awk: bailing out...
awk: syntax error near line 2
awk: bailing out near line 2
3,140
Posted By finalight
BUNGA TERATAI 3 5055 ITH 1 0 ...
BUNGA TERATAI 3 5055 ITH 1 0 0 0 1 1


this is what i want to extract out, i want the value at the last two fields

i can't really test the variable, since it...
Showing results 1 to 25 of 50

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