Search Results

Search: Posts Made By: nirnir26
3,576
Posted By nirnir26
Get directory address
what is the command that print the full address of the directory that im in it?
1,883
Posted By nirnir26
Problam with diff
hi, I want to compare 2 files and see if there is a difference between them
so i did:
set aa = `diff file1.txt file2.txt`
if ($aa == "") then
echo "no difference"
else
echo "different files"...
9,819
Posted By nirnir26
Check to see if string var is empty
i have a veriable

set var1
set var2 = abcd

how can i check if var 1 is empty and if var 2 is not empty ???
32,842
Posted By nirnir26
Check if file exists, and create file
hi i have 2 questions:
1. how can i check if file exist in vi?
i tryed to do:
if [ -s $file ]; then
echo file exist

but i get from the compiler
if: Expression Syntax.

2. how can i create...
3,179
Posted By nirnir26
its not helps..
its not helps..
3,179
Posted By nirnir26
Double space
Hi.

this is my code:
set common2 = "1 2 3 4"
echo $common2

you can see that between 1 and 2 there is double space
but the output is
1 2 3 4
and not
1 2 3 4
what is the problam???
3,911
Posted By nirnir26
OK. but now its tell me: file1.txt file2.txt...
OK.
but now its tell me:
file1.txt file2.txt differ: char 22, line 1
so how can i see what is char 22 in line 1?
and how can i see more difference after char 22??
3,911
Posted By nirnir26
how can i unix compare two files??
how can i unix compare two files??

var1 = 6499 7328 6351 7583 7573
var2 = 6499 7328 6351 7583 7777
i did:
diff $var1 $var2
and i got the output:

1c1
< 6499 7328 6351 7583 7573
---
> 6499...
7,757
Posted By nirnir26
ok, but i wanna know what is the different...
ok, but i wanna know what is the different between the 2 variable
like if:
var1 = a b c d
var2 = a b c f
so i need to know that the different is that var2 have f insted of d
or somthing like...
7,757
Posted By nirnir26
unix compare two variable
how can i unix compare two variable??

var1 = 6499 7328 6351 7583 7573
var2 = 6499 7328 6351 7583 7573
i did:
diff $var1 $var2
and i got the output:
diff: extra operand `6351'
diff: Try...
1,995
Posted By nirnir26
Sorting help
i have list of files:
Wang De Wong CVPR 09.pdf
Yaacob AFGR 99 Second edition.pdf
Shimon CVPR 01.pdf
Den CCC 97 long one.pdf
Ronald De Bour CSPP 04.pdf
.....

how can i sort this directory so...
2,471
Posted By nirnir26
Sorting help
i have list of files:
Wang De Wong CVPR 09.pdf
Yaacob AFGR 99 Second edition.pdf
Shimon CVPR 01.pdf
Den CCC 97 long one.pdf
Ronald De Bour CSPP 04.pdf
.....

how can i sort this directory so...
1,532
Posted By nirnir26
It is...
It is...
1,827
Posted By nirnir26
Sorting help
how can i sort the next list just by look at the numbers (ignore letters)
example:
abc123
dff4f
aaa2aa
bbbb55555bb

output:
aaa2aa
dff4f
abc123
bbbb55555bb
1,532
Posted By nirnir26
Sorting question
i have list of files:
Wang CVPR 09.pdf
Yaacob AFGR 99.pdf
Shi CVPR 04.pdf
.....

how can i sort with single line this directory so the output will be in the next format:...
Showing results 1 to 15 of 15

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