8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have file (my_file.txt) that looks like this:
000000000000010000
000000000000010000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
000000000000005000
all said and one, it should look... (11 Replies)
Discussion started by: lawsongeek
11 Replies
2. Shell Programming and Scripting
I have a list of files that should contain the following
Im trying to find the items of interest that are missing from each file and create a csv.
cat *.txt | while read file
do
grep 3500 file | tr '\012' ','
done
My problem is this possible output
one.txt ... (2 Replies)
Discussion started by: popeye
2 Replies
3. Shell Programming and Scripting
Hello,
I want to do div action in ksh and get the full result(with leftover).
i.e.
4/3=1.33
and not
4/3=1 (4 Replies)
Discussion started by: LiorAmitai
4 Replies
4. Shell Programming and Scripting
I have a requirement to remove all files from a directory execpt those >
(now -N hrs).
Once I can figure out how to calculate (now -N hrs) I was thinking of creating a temporary file with that time (now-N hrs) than using the find and -newer option.
Does anybody have any KSH code (needs to... (3 Replies)
Discussion started by: BeefStu
3 Replies
5. Shell Programming and Scripting
Hi,
I'm new to the scripting world...
I want to know that how can I assign the the field value(that has multiple lines) of a .csv file to a variable???
Model of my .csv file :
1 Poppy 5
2 red 6
3 black 5
4 white 8
and so on,the list... (4 Replies)
Discussion started by: srim
4 Replies
6. Shell Programming and Scripting
Hello,
I'm usring Ksh on AIX 5.3. For some reason my K-Shell gives me an error when I try to use the math operators (( )).
Can anyone tell me what's going on and how to fix it?
Thanks so much!
My K-Shell:
/>ls -al /usr/bin/ksh
-r-xr-xr-x 5 bin bin 237420 Apr 10... (2 Replies)
Discussion started by: troym72
2 Replies
7. Shell Programming and Scripting
$ x=1
$ y=1.5
$ z=$((x*y))
bash: 1.5: syntax error: invalid arithmetic operator (error token is ".5")
What's wrong? (2 Replies)
Discussion started by: rockbike
2 Replies
8. Programming
Hi, I got an easy problem for you but really difficult for me 'cause I am pretty new to this field
I got header file <math.h> included in my .c file , then I write the code as below:
k = sqrt(i); /* both variables k and i are int */
then I cc temp.c
it says like this
undefined... (4 Replies)
Discussion started by: blf0
4 Replies